Clone this repo:
  1. 9093773 Trigger release with Maven Central sync by Marcin Zajączkowski · 3 months ago master
  2. 4ad5fdc Made it possible to delay the return of a mock or spy. (Fixes #1117) (#1119) by Myrle Krantz · 3 months ago
  3. 17db345 verifyZeroInteractions guarantees zero interactions instead of just delegating to verifyNoMoreInteractions (#995) by Federico Fissore · 4 months ago
  4. 62a1d88 Merge pull request #1008 from mockito/tech/softAssertionsPoC by Marcin Zajączkowski · 6 months ago
  5. 3b3909f Merge pull request #1007 from mockito/tech/fixJava9-ea146 by Marcin Zajączkowski · 6 months ago

Most popular mocking framework for Java

Build Status Coverage Status MIT License

![latest release]( notes-3.x-yellow.svg) Latest release Maven Central Javadocs

Current version is 2.x

Still on Mockito 1.x? See what's new in Mockito 2!

Mockito continuously delivers improvements. See the latest release notes and latest documentation. Docs in are available 24h after release. Read also about semantic versioning in Mockito.

Older 1.x releases are available in Central Repository , Bintray and (documentation).

More information

All you want to know about Mockito is hosted at The Mockito Site which is Open Source and likes pull requests, too.

Want to contribute? Take a look at the Contributing Guide.

Enjoy Mockito!

Need help?

How to develop Mockito?

To build locally:

 ./gradlew build

To develop in IntelliJ IDEA you can use built-in Gradle import wizard in IDEA. Alternatively generate the importable IDEA metadata files using:

 ./gradlew idea

Then, open the generated *.ipr file in IDEA.