Mockito logo

Mockito

Tasty mocking framework for unit tests in Java
1.7K
178
+ 1
0

What is Mockito?

It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors.
Mockito is a tool in the Testing Frameworks category of a tech stack.
Mockito is an open source tool with 14.6K GitHub stars and 2.5K GitHub forks. Here’s a link to Mockito's open source repository on GitHub

Who uses Mockito?

Companies
82 companies reportedly use Mockito in their tech stacks, including doubleSlash, RatePAY GmbH, and Avito.

Developers
320 developers on StackShare have stated that they use Mockito.

Mockito Integrations

Mockito Alternatives & Comparisons

What are some alternatives to Mockito?
JUnit
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
Appium
Appium is an open source test automation framework for use with native, hybrid, and mobile web apps. It drives iOS and Android apps using the WebDriver protocol. Appium is sponsored by Sauce Labs and a thriving community of open source developers.
Robolectric
It is a framework that brings fast and reliable unit tests to Android. Tests run inside the JVM on your workstation in seconds. Test drive your Android application with robolectric
mockk
It is an open-source library focused on making mocking in Kotlin great. It is a library with the possibility of mocking default arguments, final classes, varargs, coroutines and extension methods.
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
See all alternatives

Mockito's Followers
178 developers follow Mockito to keep up with related blogs and decisions.