This book is ideal for developers who have some experience in Java application development as well as some basic knowledge of test doubles and JUnit testing. This book also introduces you to the fundamentals of JUnit testing, test doubles, refactoring legacy code, and writing JUnit tests for GWT and web services.
What you will learn
Explore test doubles and work with dummy, spy, fake, stub, and mock objects
Uncover the Mockito architecture and build a custom mocking framework
Mock, stub, and spy external code dependencies using Mockito
Practice Behaviordriven Development (BDD) with Mockito
Make legacy code testable by mocking and spying dependencies
Mock GWT and web service dependencies using Mockito
Discover argument captors, inline stubbing, and resetting mock objects