O'Reilly logo

Mastering Software Testing with JUnit 5 by Boni García

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mockito

Mockito (http://site.mockito.org/) is an open source mock unit testing framework for Java, first released in April 2008. Of course, Mockito is not the only mock framework for Java; there are others, such as the following:

We can say that, at the time of writing, Mockito is the preferred mock framework in Java tests for the most developers and testers. To justify that claim, we use the following screenshot, which shows the evolution of the terms Mockito, EasyMock, JMock, PowerMock, and JMockit in Google Trends (https://trends.google.com/) from 2004 to 2017. At the beginning of this period, we can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required