mockito

mockito

Most popular Mocking framework for unit tests written in Java

github Testing Java free
★ 15,429Stars
2,653Forks
15,429Watchers
3Views
Apr 2026Last Update

About mockito

Most popular Mocking framework for unit tests written in Java

What you should know about mockito

mockito — Most popular Mocking framework for unit tests written in Java. It is categorized under Testing and primarily built with Java. The project has gathered 15,429 stars and 2,653 forks on GitHub, indicating strong adoption among developers.

Pricing & licensing: This tool is offered free of charge , released under the MIT license. The source code is openly available on GitHub, allowing engineers to audit, contribute, or fork as needed.

Use cases & topics: mockito is associated with the following topics: java, java-library, mock, mock-library, mocking, mocking-framework, mockito, mocks. Teams working in java / java-library / mock spaces typically evaluate this kind of tool when scoping new architecture decisions or replacing legacy components.

Getting started: Check out the official GitHub repository for installation steps, configuration examples, and the latest release notes. Most teams hit value within the first week if the tool aligns with their existing Testing stack.

Editor's note from Fanny Engriana (Founder, Wardigi Digital Agency): when evaluating tools in the Testing category for our agency clients, we look at three things first — license clarity, community size, and active maintenance. Tools with explicit license terms and ongoing commits tend to remain viable across multi-year projects.

Related Tools