commit | 17db34508543150a70573fba3ca04bc4ba37a821 | [log] [tgz] |
---|---|---|
author | Federico Fissore <federico@fsfe.org> | Wed May 10 07:34:33 2017 |
committer | Tim van der Lippe <TimvdLippe@users.noreply.github.com> | Wed May 10 07:34:33 2017 |
tree | f8fcaad9227fc8ffbd3b8f2c1df90d46342976fe | |
parent | 62a1d8828e7afb0f06dc6f4d135b54824d5eccf8 [diff] |
verifyZeroInteractions guarantees zero interactions instead of just delegating to verifyNoMoreInteractions (#995) * Fixes #989 Introducing verifyNoInteractions, that checks if the number of invocations on given mock(s) is zero, failing otherwise * Added missing (?) @Test annotation * Removed try catch block by using isMock
Most popular mocking framework for Java
![latest release](https://img.shields.io/badge/release notes-3.x-yellow.svg)
Still on Mockito 1.x? See what's new in Mockito 2!
Mockito continuously delivers improvements. See the latest release notes and latest documentation. Docs in javadoc.io are available 24h after release. Read also about semantic versioning in Mockito.
Older 1.x releases are available in Central Repository , Bintray and javadoc.io (documentation).
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!
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.