Skip to content
SPECIFICTION
Get listed

Mockito

site.mockito.org

Free plan LinuxAndroidSelf-hosted
Visit site.mockito.org
Spec score 8.1 #11 of 32 in Unit Testing Frameworks

Spec sheet

Purpose
Mockito is a mocking framework for writing unit tests in Java.Read 9 Oct 2026 · site.mockito.org
Security
The repository links to a security policy.Read 9 Oct 2026 · github.com
Support
The project directs users to its mailing list for questions and documentation feedback, and GitHub for bugs and feature requests.Read 9 Oct 2026 · site.mockito.org
License
The repository publishes Mockito under the MIT License.Read 9 Oct 2026 · github.com
Android
The site says Mockito can be used on Android with Dexmaker.Read 9 Oct 2026 · site.mockito.org
Android requirement
The v5.23.0 release notes state that mockito-android tests require an Android P (API 28) or newer device or emulator.Read 9 Oct 2026 · github.com
Argument matching
Mockito supports flexible argument matching for verification and stubbing.Read 9 Oct 2026 · github.com
Build tools
The site gives Maven Central and Gradle dependency setup instructions and refers users to other build systems.Read 9 Oct 2026 · site.mockito.org
Distribution
The recommended installation method is adding the mockito-core dependency through a build system.Read 9 Oct 2026 · site.mockito.org
Enterprise support
The repository says commercial support and maintenance are available through a Tidelift subscription.Read 9 Oct 2026 · github.com
Help
The project points users to Stack Overflow, a moderated mailing list, and its GitHub issue tracker for help.Read 9 Oct 2026 · github.com
Java requirement
The repository says Mockito 5 requires Java 11.Read 9 Oct 2026 · github.com
Mocking
It can mock concrete classes as well as interfaces.Read 9 Oct 2026 · github.com
Partial mocks
Its spy feature invokes real methods while allowing them to be verified and stubbed.Read 9 Oct 2026 · site.mockito.org
Spies and injection
Its API includes spies for partial mocking and @InjectMocks for injecting mock or spy fields.Read 9 Oct 2026 · site.mockito.org
Stubbing and verification
Mockito lets developers stub method calls before execution and verify interactions afterward.Read 9 Oct 2026 · site.mockito.org
Training
Mockito core engineers offer team training on test automation with mock objects, behavior-driven development, and maintainable tests.Read 9 Oct 2026 · site.mockito.org
Use guidance
The project advises against mocking types you do not own, value objects, or everything indiscriminately.Read 9 Oct 2026 · site.mockito.org
Verification options
It supports ordered verification, exact or minimum call counts, and flexible argument matching.Read 9 Oct 2026 · github.com

Plans and prices

Mockito Free Open-source Java mocking framework Read 9 Oct 2026 · site.mockito.org

Every Mockito plan and price →

Where Specifiction places it

Alternatives to MockitoAll alternatives →