android mockito,GitHub - Jaeandroid/mockito: Mocking framework for unit tests written in Java

33aa73f80a5ac600a9682f359e7df7f8.png

Tasty mocking framework for unit tests in Java

![latest 1.x](https://img.shields.io/badge/latest stable-1.x =>-yellow.svg) 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f776e6c6f61642d312e31302e31392d626c75652e73766768747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6176656e25323063656e7472616c2d312e31302e31392d626c75652e737667

![latest 2.x](https://img.shields.io/badge/latest beta-2.x =>-yellow.svg) 68747470733a2f2f6170692e62696e747261792e636f6d2f7061636b616765732f737a637a657069712f6d6176656e2f6d6f636b69746f2f696d616765732f646f776e6c6f61642e73766768747470733a2f2f6d6176656e2d6261646765732e6865726f6b756170702e636f6d2f6d6176656e2d63656e7472616c2f6f72672e6d6f636b69746f2f6d6f636b69746f2d636f72652f62616467652e7376673f7374796c653d666c6174

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!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值