Tasty mocking framework for unit tests in Java
![latest 1.x](https://img.shields.io/badge/latest stable-1.x =>-yellow.svg)
![latest 2.x](https://img.shields.io/badge/latest beta-2.x =>-yellow.svg)
Current release
Versioning
Mockito has an automated release system, which imposed some change on how the version numbers work. While this is similar to semver, there's some differences. Let's look at the following versions 1.10.19 and 2.0.5-beta and 2.0.0 (not yet released). They follow this scheme:
major.minor.build-tag
number
meaning
major
major version, with most probably incompatible change in API and behavior
minor
minor version, important enough change to bump this number
build
a released build number incremented automatically when a pull request is merged
tag
will probably be -beta or just nothing (during beta, breaking changes are expected)
That means:
2.0.0 and 2.0.5-beta are binary incompatible with 1.10.19.
2.0.5-beta is the fifth release beta of version 2.0.0.
2.0.5-beta is a work in progress, api may change and may not be graduated in version 2.0.0.
Looking for support
Go to the mockito mailing-list (moderated)
Search / Ask question on stackoverflow
How to build?
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.
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!