This post was originally published at A Unit Testing Practitioner’s Guide to Everyday Mockito

Using Mockito is not just a matter of adding another dependency. It requires changing how you think about your unit tests while removing a lot of boilerplate.

In this article, we’ll cover multiple mock interfaces, listening invocations, matchers, and argument captors, and see firsthand how Mockito makes your tests cleaner and easier to understand.

Taken from: 

This post was originally published at A Unit Testing Practitioner’s Guide to Everyday Mockito