3. By reading this book you will
grasp the role and purpose of unit tests
gain confidence that your code really works
write high-quality, readable and maintainable unit tests
learn TestNG and Mockito http://practicalunittesting.com
avoid common pitfalls when writing unit tests
recognize bad unit tests, and fix them in no time
develop code following the TDD approach
use mocks, stubs and test-spies intelligently
test collections, expected exceptions, time-dependent
methods and much more
master tools and techniques your team members have
never even heard of (priceless!) :)
4. Some facts about the book:
450+ pages of unit testing goodness (300+ in the
PDF version)
technologies: TestNG, Mockito, FEST Fluent
Assertions, Unitils, catch-exception, PIT Mutation
Testing, PowerMock, …
contains: http://practicalunittesting.com
loads of examples
exercises for each chapter
best practices, hints, tips, warnings and guidelines
based on real-life experience and issues
written with practical issues specifically in mind
this is the first book about Mockito!
proofread and corrected by TDD, Mockito and
TestNG experts (and a native speaker, of course!)
6. About the author
Tomek Kaczanowski is a technical team leader from
Krakow, Poland. He has a strong interest in code
quality, testing and automation - preferably all three
together. Combining technical with soft skills, he also
ventures into the realms of mentoring, teaching,
lecturing and article writing, not to mention preaching
sermons to the unconverted in the hope of http://practicalunittesting.com
redeeming them (or at least their code)! He hates
doing things manually, and is allergic to empty src/
test/java directories.
Tomek believes that by working with legacy code,
and improving it, he can make the world a better
place. To his disappointment, the world does not
seem to care all that much about his efforts.
Apart from all this weirdness, he is a pretty normal
person – a husband, father of two, and cat owner.