Git Product home page Git Product logo

mockito's Introduction

Mockito

Tasty mocking framework for unit tests in Java

![build status](https://img.shields.io/badge/build-info =>-yellow.svg) Build Status Coverage Status MIT License

![latest release](https://img.shields.io/badge/latest stable-2.x =>-yellow.svg) Latest release Maven Central

Current release

See the release notes page and latest documentation.

Older releases

![latest 1.x](https://img.shields.io/badge/latest stable-1.x =>-yellow.svg) latest stable 1.x on bintray ![latest stable 1.x on maven central](https://img.shields.io/badge/maven central-1.10.19-blue.svg)

Versioning

Mockito has an automated release system, which imposed some change on how the version numbers work. The versions follow this scheme:

major.minor.patch-tag.tagVersion
number meaning
major major version, backwards incompatible with the previous major version
minor minor version, backwards compatible with added features
patch patch version, small bug fixes or stylistic improvements
tag optional beta or RC (release candidate). See below.

That means:

  • 2.0.0 and 2.0.0-beta.5 are binary incompatible with 1.10.19.
  • 2.0.0-beta.5 is the fifth release beta of version 2.0.0.
  • 2.0.0-beta.5 could be (but is not necessarily) binary incompatible with version 2.0.0.
  • 2.0.0-RC.1 is binary compatible with release 2.0.0.

Note : During the 2.0 beta phase we unleashed beta builds with the following version schemes, like : 2.0.111-beta, where the build number is placed before the tag. The current scheme reuses the build number and places it behind the tag. Hence those versions are to be considered as beta builds that happen either before or after a release candidate, but always before the final release.

2.0.111-beta < 2.0.0-beta.112 < 2.0.0-RC.1 < 2.0.0-beta.200 < 2.0.0

Tags

There are two different tags: beta or RC. Beta indicates that the version is directly generated from the master branch of the git repository. Beta releases are automatically published whenever we merge a pull request or push a change to the master branch.

When we deem our master status worthy of a release, we publish a release candidate. The release candidate is scheduled to be officially published in the official release a while later. There will be no breaking changes between a release candidate and its equivalent official release. The only changes will include bug fixes or small updates. No additional features will be included.

Looking for support

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!

mockito's People

Contributors

alberskib avatar bbankowski avatar bric3 avatar christianschwarz avatar continuous-delivery-drone avatar davidkarlsen avatar dawood-ibn-kareem avatar dmac100 avatar guw avatar hansjoachim avatar hmlnarik avatar hughwphamill avatar ianparkinson avatar iczechowski avatar jerzykrlk avatar josephw avatar kamilszymanski avatar lpandzic avatar lukasz-szewc avatar marcingrzejszczak avatar mariusvolkhart avatar michalborek avatar mkordas avatar mockitoguy avatar pascalschumacher avatar pimterry avatar raphw avatar szpak avatar timvdlippe avatar wernight avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.