Summary

In this chapter, Mockito is described in detail and technical examples are provided to demonstrate the capability of Mockito.

By the end of this chapter, you will be able to use advanced features of the Mockito framework, and start BDD with Mockito.

The next chapter will explain the importance of code coverage, line and branch coverage, how to measure code coverage, Eclipse plugins, setting up Cobertura, and generating coverage report using Ant, Gradle, and Maven.

Get Mastering Unit Testing Using Mockito and JUnit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.