February 2015
Intermediate to advanced
178 pages
3h 47m
English
Mockito is an open source unit mocking framework for Java. It allows mock object creation, verification, and stubbing.
Mockito was moved to GitHub. You can visit https://github.com/mockito/mockito to get the source code, and visit http://code.google.com/p/mockito/ to learn more about Mockito.
We add automated unit tests to run and notify us in case any code breaks the system so that the wrong code can be identified and fixed very quickly.
But when an automated test suite takes time to execute, for instance, two hours to complete a build, it defeats the purpose of quick feedback. In Test-Driven Development (TDD), automated JUnit test cases are run to provide quick feedback. Here, a test should ...
Read now
Unlock full access