FindSoftware

Mockito

Java mocking framework that creates test doubles for unit tests, with an API for stubbing calls and verifying interactions.

Mockito is a mocking framework for Java that creates test doubles for unit tests, with an API for stubbing calls and verifying interactions. Build tools such as Maven and Gradle fetch it from Maven Central, and the project site, linked from the README, holds the documentation. The project wiki says Mockito started as a fork of EasyMock and shares no code with it.

Identity

Status
Active
Maintainer
Mockito contributors5
Maintained by
Community
First release
20084

Rendering and deploy

Install with
maven1

Releases

Current major version
53
Last release
2026-09-236

Adoption

GitHub stars
15,4482
Contributors
3147
Dependent repositories
145,2588
Dependent packages
25,2058

Why these figures do not compare

Sources

  1. 2026-11-16: links, Install with
    mockito.org
  2. 2026-11-16: links, Written in, License model, GitHub stars
    api.github.com/repos/mockito/mockito
  3. 2026-11-16: links, Categories, Runtime, Minimum runtime, Current major version
    github.com/mockito/mockito/blob/main/README.md
  4. 2026-11-16: First release
    search.maven.org/solrsearch/select?q=g:org.mockito+AND+a:mockito-core+AND+v:1.3&core=gav&rows=5&wt=json
  5. 2026-11-16: Maintainer, License
    raw.githubusercontent.com/mockito/mockito/main/LICENSE
  6. 2026-11-16: Last release
    api.github.com/repos/mockito/mockito/releases/latest
  7. 2026-11-16: Contributors
    api.github.com/repos/mockito/mockito/contributors?per_page=1
  8. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/repo1.maven.org/packages/org.mockito:mockito-core

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON