Release notes were automatically generated by Shipkit

2.11.5 (2017-10-31) - 4 commits by Tim van der Lippe (3), Szczepan Faber (1) - published to Bintray

  • Add @CheckReturnValue to stubbing/verification methods (#1228)
  • Add regression test for issue #1174 (#1219)

2.11.4 (2017-10-29) - 2 commits by Szczepan Faber (1), Tim van der Lippe (1) - published to Bintray

  • Update license plugin and add missing license headers (#1227)

2.11.3 (2017-10-28) - 1 commit by Allon Murienik - published to Bintray

  • InvocationsPrinter string concatination (#1231)

2.11.2 (2017-10-22) - 7 commits by Rafael Winterhalter (6), Allon Murienik (1) - published to Bintray

  • Updated Byte Buddy and ASM dependencies. Fixes #1215. (#1218)
  • Fixes #1183: Make override check more forgiving to accomondate Kotlin compile patterns. (#1217)
  • Adresses #1206: allow opting out from annotation copying within mocks. (#1216)
  • ClassFormatError when trying to mock certain interfaces (#1215)
  • Standardize JUnit imports (#1213)
  • Mockito should not copy annotations in all cases (#1206)
  • UnfinishedVerificationException with Kotlin after updating to 2.9.0 (#1183)

2.11.1 (2017-10-20) - 4 commits by Szczepan Faber (2), Allon Murienik (1), rberghegger (1) - published to Bintray

  • Fixes #1211: Improve @deprecated JavaDoc (#1214)
  • improve @deprecated JavaDoc of MockitoDebugger (#1211)
  • Clean up JUnit imports (#1209)
  • Updated my GitHub user name (#1208)

2.11.0 (2017-10-14) published to JCenter/Maven Central

New public API for Spring Boot integration will improve compatibility of Mockito and reduce version conflict problems. We carefully grow our public API for framework integrations. This time we added new “Verification Started Listener”, needed to resolve double proxy use case. Using this API, Spring Boot framework no longer needs to depend on internal Mockito API.

We also added Automatic-Module-Name to mockito jar, useful in Java9 context (#1189).

2.11.0 (2017-10-14) - 20 commits by Szczepan Faber - published to Bintray

  • Added new public API for spring-boot use case (#1192)

2.10.5 (2017-10-14) - 12 commits by Marcin Zajączkowski (8), Szczepan Faber (3), Allon Murienik (1) - published to Bintray

  • [Java 9 support] JDK9: set a stable module name with Automatic-Module-Name entry in MANIFEST (#1189)
  • Fixed documentation issue, added unit tests (#1203)
  • [#1202] Java 9 CI build for Mockito 2.x (#1202)
  • Fixes #1189: Add stable module name (#1195)

2.10.4 (2017-10-08) - 1 commit by Allon Murienik - published to Bintray

  • Fix javadoc in PluginLoader#withAlias' javadoc (#1201)

2.10.3 (2017-10-07) - 1 commit by Christian Schwarz - published to Bintray

  • Fix for #1155 thenThrow(Class) (#1162)
  • thenThrow(Class) should only throw checked exceptions that match the signature of the stubbed method (#1155)

2.10.2 (2017-10-06) - 3 commits by Allon Murienik (1), Ben Yu (1), Roman Elizarov (1) - published to Bintray

  • Fixes 977: Javadoc on verifyZeroInteractions (#1199)
  • Introduce test for mock-maker-inline with Kotlin suspend functions (#1165)
  • Add tests to verify and show that @Spy can be used to allow stubbing/verification of List parameters using varargs. (#1157)

2.10.1 (2017-10-04) - 1 commit by Dennis Cheung - published to Bintray

  • Enable stubOnly() on @Mock annotation (#1146)

2.10.0 (2017-09-08) published to JCenter/Maven Central

The main highlight of this release is the additions to the public API to accommodate advanced framework integrations. It will help other frameworks to cleanly integrate with Mockito. For more details, see #1121.

2.10.0 (2017-09-08) - 42 commits by Szczepan Faber - published to Bintray

  • Improve and develop APIs required for framework integrators (#1121)

2.9.2 (2017-09-05) - 2 commits by Rafael Winterhalter - published to Bintray

  • Compare method of graph to defined form of method. (#1186)

2.9.1 (2017-09-04) - 11 commits by Rafael Winterhalter (9), Szczepan Faber (2) - published to Bintray

  • Travis (#1184)
  • #1179: Fix performance regression caused by use of method graph compiler. (#1181)
  • Mockito 2.9.0 is significantly slower (#1179)
  • Adds support for Java 9 in inline mock maker by Byte Buddy update. (#1158)

2.9.0 (2017-08-26) published to JCenter/Maven Central

Notable changes:

  • bumped ByteBuddy 1.6.14 -> 1.7.0 (inline mocking, bugfixes)
  • bumped Objenesis 2.5 -> 2.6 (Java9, bugfixes)

2.9.0 (2017-08-26) - 5 commits by Szczepan Faber - published to Bintray

  • Updated README.md wrt maven central release (#1172)
  • Bumped minor version so signify new Objenesis version (#1171)

2.8.55 (2017-08-21) - 7 commits by Szczepan Faber (6), Pascal Schumacher (1) - published to Bintray

  • Update objenesis version 2.5 -> 2.6 (Java9, bugfixes) (#1170)
  • Updated to latest Shipkit, tidied up configuration (#1169)

2.8.54 (2017-08-09) - 5 commits by Marcin Zajączkowski (3), Igor C. A. de Lima (1), Szczepan Faber (1) - published to Bintray

  • [Bugfixes] Unnecessary release was triggered (#1144)
  • Remove duplicated word in Javadoc (#1161)
  • [#1147] Provide version in release commit message (#1147)
  • Bumped shipkit to fix unnecessary releasing problem (#1145)

2.8.53 (2017-07-06) - 6 commits by Szczepan Faber (5), Wojtek Wilk (1) - published to Bintray

  • Bumped shipkit, simplified Travis file, removed unnecessary code (#1141)
  • org.shipkit.publications-comparator plugin applied (#1139)

2.8.52 (2017-06-24) - 8 commits by Szczepan Faber - published to Bintray

  • Simplified and documented .travis.yml file (#1133)

2.8.51 (2017-06-24) - 1 commit by Allon Murienik - published to Bintray

  • Don't use raw rypes in UnusedStubbingsTest (#1137)

2.8.50 (2017-06-24) - 1 commit by Rafael Winterhalter - published to Bintray

  • Fixes #1135: Properly resolve visibility bridges. (#1136)
  • [mock-maker-inline] Method calls on mock forwarded to real instance (#1135)

2.8.49 (2017-06-22) - 2 commits by Rafael Winterhalter - published to Bintray

  • Improve detection on non-mockable types - ByteBuddy bump 1.6.14->1.7.0 (#1128)

2.8.48 (2017-06-18) - 2 commits by epeee (1), Szczepan Faber (1) - published to Bintray

  • make use of shipkit v0.8.92 (#1132)

2.8.47 (2017-06-15) published to JCenter/Maven Central

2.8.47 (2017-06-15) - 1 commit by Marcin Zajączkowski - published to Bintray

  • No pull requests referenced in commit messages.

2.8.46 (2017-06-15) - 2 commits by Szczepan Faber - published to Bintray

  • Fixed issue with releases to Maven Central (#1129)
  • Version not released to Maven Central (#1127)

2.8.45 (2017-06-13) - 1 commit by VChirp - published to Bintray

  • Fix typo: Remove repeated “a” (#1125)

2.8.44 (2017-06-12) - 3 commits by Marcin Zajaczkowski (1), Marcin Zajączkowski (1), Myrle Krantz (1) - published to Bintray

  • [New features] Answer with delay in mock or spy to improve testing of asynchronous code (#1117)

2.8.43 (2017-06-10) - 2 commits by Szczepan Faber - published to Bintray

  • No pull requests referenced in commit messages.

2.8.42 (2017-06-10) - 3 commits by epeee (2), Szczepan Faber (1) - published to Bintray

2.8.41 - 1 commit by Allon Murienik - 2017-06-10 - published to Bintray

  • ArgsMismatchFinder#getStubbingArgMismatches generics (#1118)

2.8.40 - 4 commits by Szczepan Faber (2), Alex Simkin (1), mkuster (1) - 2017-06-05 - published to Bintray

  • [Bugfixes] Fixed Travis configuration for matrix build (#1109)
  • Renamed configuration extension ‘releasing’ into ‘shipkit’ (#1104)
  • Made CaturingMatcher threadsafe (#986)

2.8.39 - 1 commit by Szczepan Faber - 2017-05-30 - published to Bintray

  • Fixed contributor links and bintray badge in release notes (#1103)

2.8.38 - 1 commit by Szczepan Faber - 2017-05-30 - published to maven/mockito-development

  • [Documentation] Fixed broken link in Javadoc, improved console message (#1100)

2.8.37 - 4 commits by epeee, Szczepan Faber - 2017-05-28 - published to maven/mockito-development

  • update gradle to v3.5 (#1099)
  • Moved some more dependencies to dependencies.gradle (#1098)

2.8.36 - 1 commit by Allon Murienik - 2017-05-27 - published to maven/mockito-development

  • InOrderImpl constructor signature (#1096)

2.8.35 - 4 commits by Szczepan Faber - 2017-05-27 - published to maven/mockito-development

  • Fixed bug with git push for tag during the release (#1095)
  • update assertj (v2.8.0) (#1094)

2.8.34 - 2 commits by Szczepan Faber - 2017-05-27 - published to maven/mockito-development

  • Updated build for latest release tools (#1093)

2.8.33 - 2 commits by Szczepan Faber (1), Tim Cooke (1) - 2017-05-27 - published to maven/mockito-development

  • [Documentation] Javadoc Example Throws Unexpected Exception (#1088)
  • Fixes #1088 : Updating documentation of verify feature to correct a s… (#1091)

2.8.32 - 1 commit by Arend v. Reinersdorff - 2017-05-26 - published to maven/mockito-development

  • Fix link to Mockito JUnit rule heading (#1092)

2.8.31 - 1 commit by Rafael Winterhalter - 2017-05-22 - published to maven/mockito-development

  • Fixes #1083: Interfaces only declare toString implicitly and should t… (#1090)
  • Mockito 2 mock-maker-inline not able to mock Object methods on an interface (#1083)

2.8.30 (2017-05-18) - 3 commits by epeee (2), Szczepan Faber (1) - 2017-05-18 - published to maven/mockito-development

  • Streamline assertj and junit4 usage in gradle files and update assertj (v2.7.0) (#1075)

2.8.29 (2017-05-15) - 7 commits by Szczepan Faber (5), Christian Schwarz (1), Serge Bishyr (1) - published to maven/mockito-development

  • Bumped version of tools to pick up release automation fixes (#1084)
  • More concise release notes and codecov issue fix (#1080)
  • Fixed #1065. Add information about doNothing() method to CannotStubVo… (#1079)
  • Fixed validation in returnArgumentAt(int) in case of type erasure on the parameter (#1076)
  • Mockito AdditionalAnswers.returnsFirstArg() doesn't work with generic first arg (#1071)
  • Complement error message (#1065)

2.8.28 (2017-05-06) - 1 commit by Allon Murienik, published to: maven/mockito-development

  • README.md release FAQ newlines (#1073)

2.8.27 (2017-05-05) - 1 commit by Roman Elizarov, published to: maven/mockito-development

  • Support Kotlin suspending functions (#1032)

2.8.26 (2017-05-05) - 3 commits by Szczepan Faber, published to: maven/mockito-development

  • Bumped release tools to 0.8.4 - concise release notes (#1069)

2.8.25 (2017-05-01) - 2 commits by epeee, Szczepan Faber, published to: maven/mockito-development

  • Test code refactoring - updated assertj test dependency from 1.x to 2.6.0 (#1058)

2.8.24 (2017-05-01) - 1 commit by epeee, published to: maven/mockito-development

  • Fixed typos across the codebase (#1060)

2.8.23 (2017-05-01) - 11 commits by Szczepan Faber, Tim van der Lippe, published to: maven/mockito-development

  • Bumped version of tools (#1062)
  • Enabled automatic releasing without using skip-release keyword yet (#1061)
  • Ensured the release actually happens automatically (#1057)
  • Bumped version of release tools (#1055)
  • Fixed problems with releases (#1052)
  • Fix some issues reported by SonarQube (#1027)

2.8.9 (2017-04-26) published to JCenter/Maven Central

Notable changes sincle last release to Maven Central (2.7.22):

  • Updated ByteBuddy to 1.6.14, mostly for Java9
  • Fixed NPE with MockitoJUnitRunner (#1035)

2.8.9 (2017-04-26) - 11 commits by Rafael Winterhalter, published to: JCenter/Maven Central

  • Updated ByteBuddy to 1.6.14, fixes agent attachment on Java 9 VM

2.8.8 (2017-04-24) - 3 commits by Szczepan Faber, published to: maven/mockito-development

  • Release notes tidy-up: new notable version 2.7.22, bumped release tools version (#1048)

2.8.7 (2017-04-20) - 1 commit by Szczepan Faber, published to: maven/mockito-development

  • Release automation: automated publishing in Bintray, documentation (#1039)

2.8.6 (2017-04-19) - 1 commit by Serge Bishyr, published to: maven/mockito-development

  • Fixes #1044: change example for alignment of throws declaration (#1045)
  • Mistake in Contribution guide, Code style example (#1044)

2.8.5 (2017-04-18) - 1 commit by Rafael Winterhalter, published to: maven/mockito-development

  • Do not suppress instrumentation exceptions (#1012)

2.8.4 (2017-04-17) - 1 commit by Allon Murienik, published to: maven/mockito-development

2.8.3 (2017-04-16) - 1 commit by yyvess, published to: maven/mockito-development

  • Fixed NPE with MockitoJUnitRunner - MockitoTestListener must be remove on case test fail on the initialization. (#1035)

2.8.2 (2017-04-14) - 1 commit by Szczepan Faber, published to: maven/mockito-development

  • Fixed glitches with notable releases (#1038)

2.8.1 (2017-04-13) - 3 commits by Marcin Zajączkowski, Szczepan Faber, yyvess, published to: maven/mockito-development

2.8.0 (2017-04-12) - 23 commits by Szczepan Faber, Allon Mureinik, published to: maven/mockito-development

  • Fixed notable version (#1030)
  • SmartPrinterTest toString() calls (#1025)
  • Enabled continuous delivery via robust mockito-release-tools project (#1018)

2.7.22 (2017-04-07), published to JCenter/Maven Central.

Last version published to Maven Central after the team adopted Continuous Delivery Pipeline 2.0.

  • Authors: 4, commits: 8
    • 3: Marcin Zajączkowski
    • 2: Allon Mureinik
    • 2: Szczepan Faber
    • 1: Marcin Zajaczkowski
  • Improvements: 3
    • Fix broken link in Mockito javadoc (#1023)
    • MatchersTest numeric literals (#1022)
    • Change release build to JDK 7 with binary compatibility for Java 6 (#1021)

2.7.21 (2017-04-01 11:07 UTC)

  • Authors: 2
  • Commits: 4
    • 3: Szczepan Faber
    • 1: Tim van der Lippe
  • Improvements: 2
    • Documentation: 1
      • Javadoc, Answer1 code example does not compile. (#952)
    • Remaining changes: 1
      • Tidy-up in build automation (#1011)

2.7.20 (2017-03-29 17:23 UTC)

  • Authors: 7
  • Commits: 12
    • 3: Marcin Zajączkowski
    • 2: Allon Mureinik
    • 2: Szczepan Faber
    • 2: Tim van der Lippe
    • 1: Jesse Englert
    • 1: Nirvanall
    • 1: Tsuyoshi Murakami
  • Improvements: 11
    • Bugfixes: 1
      • Enabled mocking interface clone method (#688)
    • Enhancements: 1
      • Make MockSettings.useConstructor able to choose the right constructor (#976)
    • Remaining changes: 9
      • Bumped version to fix CI build (#1010)
      • Clean up unused imports (#1009)
      • Fix release notes badge (#1001)
      • Add explicit mention for code style check (#996)
      • fix the broken link on 1357 line in Mockito.java (#994)
      • Fixes #976: Resolve ambiguous constructors (#980)
      • Fixes #974: Fix to get correct stubbing location with inline mocking (#979)
      • MockitoJUnitRunner.StrictStubs does not detect ‘Unnecessary Stubbing’ when inline mock maker is enabled (#974)
      • Verifies #688: Acceptance test to prevent future regression (#972)

2.7.18 (2017-03-18 16:40 UTC)

  • Authors: 1
  • Commits: 1
    • 1: L-KID
  • Improvements: 1
    • Corrected a comment in exceptions package-info (#975)

2.7.17 (2017-03-12 18:39 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Rafael Winterhalter
  • No notable improvements. See the commits for detailed changes.

2.7.16 (2017-03-10 11:57 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Tsuyoshi Murakami
  • Improvements: 2
    • Fixes #981: Update Javadoc about the ‘mockito-inline’ artifact (#985)
    • Update documentation about mockito-inline artifact (#981)

2.7.15 (2017-03-09 12:05 UTC)

  • Authors: 1
  • Commits: 1
    • 1: paulduffin
  • Improvements: 1
    • Break cyclical compile time dependency on hideRecursiveCall (#983)

2.7.14 (2017-03-05 23:25 UTC)

  • Authors: 3
  • Commits: 7
    • 3: Allon Mureinik
    • 3: Szczepan Faber
    • 1: Tim van der Lippe
  • Improvements: 3
    • New features: 2
      • New feature - enable mocking using constructor arguments (#935)
      • Support constructor parameters for spying on abstract classes (#685)
    • Remaining changes: 1
      • Add editor config to automatically adhere to code style guide (#966)

2.7.13 (2017-02-28 05:38 UTC)

  • Authors: 3
  • Commits: 6
    • 3: Ben Yu
    • 2: Szczepan Faber
    • 1: Marcin Zajączkowski
  • Improvements: 2
    • Enabled local testing of release tools (#968)
    • Allow spying on interfaces so that it is convenient to work with Java 8 default methods (#942)

2.7.12 (2017-02-25 23:25 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Rafael Winterhalter
  • Improvements: 2
    • Bugfixes: 1
      • Invalid property reported by mocks and partial mocks (#963)
    • Remaining changes: 1
      • With Inline Mocking enabled, Mockito throws when mocking interface with default method (#944)

2.7.11 (2017-02-21 20:43 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Christian Schwarz
  • Improvements: 1
    • Simplified the creation of ArgumentsAreDifferent-Exceptions. (#908)

2.7.10 (2017-02-19 19:37 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Allon Murienik
    • 1: Marcin Zajączkowski
  • Improvements: 2
    • Fix broken build (#959)
    • Display release warning only when needed (#955)

2.7.9 (2017-02-17 16:18 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Allon Murienik
    • 1: Rafael Winterhalter
  • Improvements: 3
    • Checkstyle conf. to enforce whitespace rules (#932)
    • Fix whitespace issues throughout the code (#928)
    • Add detection for Android environments and give warnings if used incorrectly. Corrected documentation. (#893)

2.7.8 (2017-02-17 13:45 UTC)

  • Authors: 4
  • Commits: 4
    • 1: Brice Dutheil
    • 1: Marcin Zajaczkowski
    • 1: Marcin Zajączkowski
    • 1: Stuart Blair
  • Improvements: 2
    • Remove Gradle 5 depracation warning (#954)
    • Fix Javadocs on MockitoRule.java to correct an error on its usage. (#953)

2.7.7 (2017-02-16 15:09 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Tim van der Lippe
  • Improvements: 1
    • RunnerFactory InvocationTargetException to return one more possible reason (#949)

2.7.6 (2017-02-13 15:40 UTC)

  • Authors: 3
  • Commits: 6
    • 3: tmurakami
    • 2: Tim van der Lippe
    • 1: Rafael Winterhalter
  • Improvements: 3
    • Fix JavaDoc generation on recent JDK 8 builds (#934)
    • Fixes #929: Move the resources directory to src/main (#931)
    • New ‘mockito-inline’ artifact does not work (#929)

2.7.5 (2017-02-07 15:36 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Christian Schwarz
  • Improvements: 2
    • Support for return type ‘Void’ in DoesNothingAnswer (#933)
    • Mockito can't unbox Void (#927)

2.7.4 (2017-02-06 15:04 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Allon Murienik
  • Improvements: 1
    • Fix whitespace issues throughout the code (#928)

2.7.3 (2017-02-06 12:51 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Christian Schwarz
  • Improvements: 1

2.7.2 (2017-02-04 12:05 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Rafael Winterhalter
    • 1: Szczepan Faber
  • Improvements: 2
    • Deleted dead code (#924)
    • Added subproject for configuration-free inline mock making. (#920)

2.7.1 (2017-01-31 16:48 UTC)

  • Authors: 0
  • Commits: 0
  • No notable improvements. See the commits for detailed changes.

2.7.0 (2017-01-29 16:14 UTC)

  • Authors: 1
  • Commits: 29
    • 29: Szczepan Faber
  • Improvements: 1
    • New features: 1
      • New strict mocking API - MockitoSession. Overview: (#857), pull request: (#865).

2.6.9 (2017-01-27 22:02 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Christian Schwarz
  • Improvements: 1
    • Unified all number of invocations checker in NumberOfInvocationsChecker (#907)

2.6.8 (2017-01-23 14:53 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Brice Dutheil
  • Improvements: 2
    • Documentation: 2
      • Fixes #814 : A elements were missing the name attribute (#905)
      • Javadoc links in main Mockito doc are not linkable (#814)

2.6.7 (2017-01-23 13:52 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Brice Dutheil
    • 1: Rafael Winterhalter
  • Improvements: 2
    • Fix TypeCache dead lock (#902)
    • Mockito 2.6.4 hangs on JDK 1.8.0_31 (#892)

2.6.6 (2017-01-23 10:12 UTC)

  • Authors: 1
  • Commits: 5
    • 5: Brice Dutheil
  • Improvements: 1
    • Enhancements: 1
      • Spy annotation reports better error message if instance creation is impossible (#885)

2.6.5 (2017-01-21 12:58 UTC)

  • Authors: 2
  • Commits: 4
    • 2: Brice Dutheil
    • 2: Raptis
  • Improvements: 3
    • Bugfixes: 1
      • Overridden abstract methods using generics are not longer called for partial mock (working with Mockito 1.10.19) (#874)
    • Documentation: 1
      • Clarify documentation for consecutive stubbing (#896)
    • Remaining changes: 1
      • Update to Byte Buddy 1.6.4: Fixes bridge method resolution for generic types (#891)

2.6.4 (2017-01-19 17:12 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Marcin Zajączkowski
    • 1: Rafael Winterhalter
  • Improvements: 1
    • Update to Byte Buddy 1.6.4: Fixes bridge method resolution for generic types (#891)

2.6.3 (2017-01-15 21:07 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Allon Murienik
    • 1: Szczepan Faber
  • Improvements: 3
    • Java 9 support: 1
      • Upgrading to Objenesis 2.5 (#882)
    • Remaining changes: 2
      • Fixes #882: Upgrade to Objenesis 2.5 (#887)
      • Fixed build for external contributors (#886)

2.6.2 (2017-01-13 10:58 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Allon Mureinik
    • 1: Brice Dutheil
  • Improvements: 2
    • Fixed #879: ArgumentMatchers grammar fix (#881)
    • Grammar issue in ArgumentMatchers' javadoc. (#879)

2.6.1 (2017-01-12 13:55 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Tim van der Lippe
  • No notable improvements. See the commits for detailed changes.

2.6.0 (2017-01-12 12:42 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Tim van der Lippe
  • Improvements: 1
    • New features: 1
      • Prepare Android library for publication and bump version to 2.6.0 (#872)

2.5.7 (2017-01-11 08:28 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Marcin Zajączkowski
    • 1: Rafael Winterhalter
  • Improvements: 1
    • Update Byte Buddy and enable injecting loading strategy for Android (#875)

2.5.6 (2017-01-10 13:20 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Brice Dutheil
    • 1: Johnny Lim
  • Improvements: 1
    • Remove redundant defaultAnswer(RETURNS_DEFAULTS) (#870)

2.5.5 (2017-01-06 11:19 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Brice Dutheil
  • Improvements: 2
    • Bugfixes: 1
      • [VarArgs] unexpected behaviour of returnsArgAt(int) (#820)
    • Remaining changes: 1
      • Fixes #820 ReturnsArgAt to handle returning vararg as arrays (#821)

2.5.4 (2017-01-04 17:02 UTC)

  • Authors: 2
  • Commits: 3
    • 2: Brice Dutheil
    • 1: wenwu
  • Improvements: 3
    • Bugfixes: 2
      • When custom exception fillInstackTrace() returns null, Exception mock cannot work properly (#866)
      • Jacoco 0.7.8 breaks tests for the new plugin mechanism (#860)
    • Remaining changes: 1
      • Fixes #866 should not throw NPE, when custom Exception fillInStackTrace returns null (#867)

2.5.3 (2017-01-02 16:48 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Brice Dutheil
    • 1: Rafael Winterhalter
  • Improvements: 1
    • Updated to Byte Buddy 1.6.0 (#864)

2.5.2 (2017-01-02 00:50 UTC)

  • Authors: 1
  • Commits: 6
    • 6: Szczepan Faber
  • Improvements: 1
    • Enhancements: 1
      • Safeguard for MockitoListener API (#858)

2.5.1 (2017-01-02 00:13 UTC)

  • Authors: 1
  • Commits: 9
    • 9: Szczepan Faber
  • Improvements: 1
    • New features: 1
      • Mockito JUnit Runner supports strict stubbing (#854)

2.5.0 (2016-12-28 08:10 UTC)

  • Authors: 1
  • Commits: 9
    • 9: Szczepan Faber
  • Improvements: 2
    • Stopped publishing java source inside main jar (#850)
    • JUnit rule strictness can be tweaked per test method (#843)

2.4.5 (2016-12-27 17:52 UTC)

  • Authors: 3
  • Commits: 6
    • 3: Rafael Winterhalter
    • 2: Szczepan Faber
    • 1: ceduardo.melo
  • Improvements: 2
    • Rename compiled MockMethodDispatcher class so that it works with Robolectric (#847)
    • Rename MockMethodDispatcher.class to MockMethodDispatcher.raw on build (#845)

2.4.4 (2016-12-27 14:45 UTC)

  • Authors: 2
  • Commits: 3
    • 2: Szczepan Faber
    • 1: Rafael Winterhalter
  • Improvements: 2
    • Update Byte Buddy to support recent Java 9 builds (#852)
    • Automatically publish main jar to central (#844)

2.4.3 (2016-12-25 15:39 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Brice Dutheil
  • Improvements: 1
    • Added subproject for supporting class loading on Android. (#774)

2.4.2 (2016-12-23 23:44 UTC)

  • Authors: 1
  • Commits: 9
    • 9: Szczepan Faber
  • Improvements: 1
    • Added missing Javadoc and few other tidy-ups (#842)

2.4.1 (2016-12-22 14:02 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Brice Dutheil
  • Improvements: 2
    • Enhancements: 2
      • Fixes #838 : Adds a matches(Pattern) (#839)
      • Feature request: ArgumentMatchers.matches(Pattern regex) (#838)

2.4.0 (2016-12-21 05:35 UTC)

  • Authors: 3
  • Commits: 6
    • 4: Szczepan Faber
    • 1: Brice Dutheil
    • 1: jakobjo
  • Improvements: 3
    • Enhancements: 2
      • JUnit runner reports argument stubbing mismatches (#808)
      • Verification listeners (#719)
    • Remaining changes: 1
      • Test clean up according to discussions for RememberingListeners (#831)

2.3.11 (2016-12-20 12:25 UTC)

  • Authors: 2
  • Commits: 5
    • 4: Szczepan Faber
    • 1: Christian Schwarz
  • Improvements: 3
    • Disabled maven central sync (#837)
    • Main jar automatically publishes to central (#836)
    • Simplified ArgumentMatcherStorageImpl and logic matchers (#833)

2.3.10 (2016-12-19 13:38 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Brice Dutheil
  • Improvements: 1
    • Enhancements: 1
      • Introduce validable answers (#826)

2.3.9 (2016-12-19 03:09 UTC)

  • Release automation bugfixes needed for mockito-android publication

2.3.7 (2016-12-18 04:31 UTC)

  • Authors: 1
  • Commits: 24
    • 24: Szczepan Faber
  • Improvements: 2
    • Fixed problem with publication (#832)
    • Automated publication of mockito submodule like mockito-android (#809)

2.3.6 (2016-12-17 16:36 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Brice Dutheil
  • Improvements: 2
    • Improves exception message in case a matcher is used for a primitive parameter (#830)
    • Test for verification listeners test can introduces bogus erro in other test cases. (#827)

2.3.5 (2016-12-15 10:24 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Rafael Winterhalter
  • Improvements: 1
    • Only resolve instrumented method after validating that an instance is… (#823)

2.3.4 (2016-12-14 16:19 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Brice Dutheil
  • Improvements: 3
    • Bugfixes: 1
      • Fixes bug were previously verified invocations could not capture argu… (#819)
    • Enhancements: 1
      • Verification using After and ArgumentCaptor with Times or AtLeast methods returns unexpected size of captured values list. (#379)
    • Remaining changes: 1
      • Fixes the issue #379 by removing previously verified invocations, some tests were added to verify that works (#380)

2.3.3 (2016-12-13 22:39 UTC)

  • Authors: 1
  • Commits: 1
    • 1: LiamClark
  • Improvements: 1
    • Enhancements: 1

2.3.2 (2016-12-13 18:33 UTC)

  • Authors: 2
  • Commits: 7
    • 6: Brice Dutheil
    • 1: Rafael Winterhalter
  • Improvements: 1
    • Enable annotation engine as plugin (#811)

2.3.1 (2016-12-13 18:26 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Rafael Winterhalter
  • Improvements: 1
    • Never throw mockito exceptions from a plugin type's constructor (#805)

2.3.0 (2016-12-10 17:48 UTC)

  • Authors: 1
  • Commits: 50
    • 50: Szczepan Faber
  • Improvements: 1
    • New features: 1
      • New opt-in stubbing strictness implemented in JUnit rules (#807)

2.2.29 (2016-12-07 13:17 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Brice Dutheil
  • Improvements: 2
    • Bugfixes: 1
      • Mockito 2 fails when running on IBM J9 (SR1 FP10) VM (#801)
    • Enhancements: 1
      • Adds a warning for IBM J9 VMs if mock generation fails (#803)

2.2.28 (2016-12-02 13:45 UTC)

  • Authors: 2
  • Commits: 4
    • 3: Brice Dutheil
    • 1: Szczepan Faber
  • Improvements: 2
    • Bugfixes: 1
      • Deep stubs no longer cause unnecessary stubbing exception with JUnit runner (#795)
    • Remaining changes: 1

2.2.27 (2016-11-30 12:05 UTC)

  • Authors: 3
  • Commits: 3
    • 1: Christian Schwarz
    • 1: Marcin Zajączkowski
    • 1: Szczepan Faber
  • Improvements: 2
    • Add showing stacktrace in Travis build (#786)
    • Removed argument from MockingProgress.stubbingCompleted(..) (#779)

2.2.26 (2016-11-27 09:05 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Christian Schwarz
    • 1: Stephan Schroevers
  • No notable improvements. See the commits for detailed changes.

2.2.25 (2016-11-25 18:10 UTC)

  • Authors: 3
  • Commits: 3
    • 1: Brice Dutheil
    • 1: Igor Kostenko
    • 1: Stephan Schroevers
  • Improvements: 4
    • Enhancements: 1
      • Introduce default answers for primitive Optionals/Streams (#782)
    • Remaining changes: 3
      • Add default answers for java.util.Optional{Double,Int,Long} and java.util.stream.{Double,Int,Long}Stream (#781)
      • Fixes #765: Set files encoding to UTF-8 (#780)
      • Cannot build Mockito on Windows 64b with Java 8 (#765)

2.2.24 (2016-11-25 15:08 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Christian Schwarz
  • Improvements: 1
    • Removed private isMockitoMock(..) in MockUtil (#775)

2.2.23 (2016-11-25 14:26 UTC)

  • Authors: 3
  • Commits: 5
    • 2: Brice Dutheil
    • 2: Christian Schwarz
    • 1: Felix Dekker
  • Improvements: 4
    • Replaced ObjectBox with AtomicReference (#777)
    • InvocationMatcher internal improvements (#776)
    • Fixes #731 Implements retry rule for flaky tests (#771)
    • Consider rerunning failed tests (#731)

2.2.22 (2016-11-21 11:17 UTC)

  • Authors: 1
  • Commits: 10
    • 10: Brice Dutheil
  • Improvements: 2
    • Documentation: 1
      • Public javadoc offers links to internal classes (#762)
    • Remaining changes: 1
      • Fixes #762 Removes ReturnsEmptyValue javadoc references (#763)

2.2.21 (2016-11-18 08:52 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Rafael Winterhalter
  • Improvements: 1
    • Mockito 2.2.17 regression: mock-maker-inline drops -parameters (#764)

2.2.20 (2016-11-17 18:31 UTC)

  • Authors: 1
  • Commits: 4
    • 4: Brice Dutheil
  • Improvements: 1
    • Regroup Junit classes in junit packages (#748)

2.2.19 (2016-11-17 08:24 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Rafael Winterhalter
  • No notable improvements. See the commits for detailed changes.

2.2.18 (2016-11-17 05:50 UTC)

  • Authors: 3
  • Commits: 3
    • 1: Liam Clark
    • 1: Szczepan Faber
    • 1: Tim van der Lippe
  • Improvements: 2
    • Documentation: 2
      • Updated the verification documentation to correctly use argThat with Java8 lambdas (#759)
      • Generate service-worker after generating JavaDoc for offline access (#602)

2.2.17 (2016-11-15 19:05 UTC)

  • Authors: 1
  • Commits: 2
    • 2: Rafael Winterhalter
  • Improvements: 1
    • “mock-maker-inline” prevents collection of code coverage for spys (#757)

2.2.16 (2016-11-14 11:13 UTC)

  • Authors: 3
  • Commits: 35
    • 33: Szczepan Faber
    • 1: Brice Dutheil
    • 1: Continuous Delivery Drone
  • Improvements: 4
    • Documentation: 1
      • Improved documentation regarding unused stubbing detection (#754)
    • Remaining changes: 3
      • Pushed release automation code into separate GitHub repository (#751)
      • Added new release workflow for release automation (#724)
      • DelayedExecution uses now a more precise approach to call a mock async. (#704)

2.2.15 (2016-11-08 20:43 UTC)

  • Authors: 2
  • Commits: 4
    • 3: Brice Dutheil
    • 1: Szczepan Faber
  • Improvements: 1
    • Enhancements: 1
      • Allow fluent usage of Mockito.framework() listeners methods (#747)

2.2.14 (2016-11-08 20:11 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Dmitriy Zaitsev
  • Improvements: 1
    • Add missing copyright headers (#746)

2.2.13 (2016-11-07 22:59 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Brice Dutheil
  • Improvements: 1
    • Removes deprecated way of documenting package by package-info.java (#745)

2.2.12 (2016-11-07 04:29 UTC)

  • Authors: 1
  • Commits: 11
    • 11: Szczepan Faber
  • Improvements: 1
    • Enhancements: 1
      • Exposed existing verification API so that it no longer leaks internal API (#735)

2.2.11 (2016-11-04 04:51 UTC)

  • Authors: 2
  • Commits: 4
    • 2: bric3
    • 2: Szczepan Faber
  • Improvements: 1
    • Enhancements: 1
      • New nullable(Class) matcher for convenient matching of nullable arguments (#734)

2.2.10 (2016-11-04 04:23 UTC)

  • Authors: 2
  • Commits: 11
    • 9: Szczepan Faber
    • 2: bric3
  • Improvements: 2
    • Upgrade ByteBuddy to 1.5.3 (#737)
    • Release automation tidy up (#723)

2.2.9 (2016-10-26 14:44 UTC)

  • Authors: 2
  • Commits: 6
    • 5: Szczepan Faber
    • 1: Rafael Winterhalter
  • Improvements: 2
    • Bugfixes: 1
      • Mockito 2 cannot mock kohsuke/github-api classes (#701)
    • Remaining changes: 1
      • Simplified release process by hosting javadoc on javadoc.io (#709)

2.2.8 (2016-10-24 11:04 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Brice Dutheil
  • Improvements: 1
    • Bugfixes: 1
      • Improve usability of arity Answers with regards to checked exceptions (#707)

2.2.7 (2016-10-22 09:21 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Gaëtan Muller
  • Improvements: 1
    • Improved exception message (#705)

2.2.6 (2016-10-21 01:04 UTC)

  • Authors: 1
  • Commits: 12
    • 12: Szczepan Faber
  • Improvements: 1
    • New features: 1
      • New MockingDetails.printInvocations() API for debugging tests and edge cases (#543)

2.2.5 (2016-10-17 16:34 UTC)

  • Authors: 2
  • Commits: 3
    • 2: Christian Schwarz
    • 1: Brice Dutheil
  • Improvements: 1
    • Enhancements: 1
      • Unified logic of argument matching and capturing (#635)

2.2.4 (2016-10-17 15:40 UTC)

  • Authors: 1
  • Commits: 1
    • 1: Rafael Winterhalter
  • Improvements: 2
    • Bugfixes: 1
      • Fails to create mock of inner class hierarchy with type variable from outer class (#699)
    • Remaining changes: 1
      • Mocking final classes with Java8 when compiling with -parameters flag (#695)

2.2.3 (2016-10-16 14:12 UTC)

  • Authors: 2
  • Commits: 13
    • 12: Szczepan Faber
    • 1: Continuous Delivery Drone
  • Improvements: 1
    • New features: 1
      • new API MockingDetails.getStubbings() for advanced users and integrations (#542)

2.2.2 (2016-10-16 04:41 UTC)

  • Authors: 3
  • Commits: 5
    • 2: Brice Dutheil
    • 2: Szczepan Faber
    • 1: Continuous Delivery Drone
  • Improvements: 3
    • Enhancements: 1
      • Improved the format of arguments in verification failures when describing short and byte values (#693)
    • Remaining changes: 2
      • Enabled automated sync to central repository (#690)
      • Pretty print primitive and wrappers types in Maps (#571)

2.2.1 (2016-10-11 15:26 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Continuous Delivery Drone
    • 1: Rafael Winterhalter
  • Improvements: 1
    • Bugfixes: 1
      • Enabled mocking interface clone method (#688)

2.2.0 (2016-10-09 23:52 UTC)

  • Authors: 5
  • Commits: 17
    • 13: Szczepan Faber
    • 1: Brice Dutheil
    • 1: Christian Schwarz
    • 1: Marcin Zajączkowski
    • 1: mgrafl
  • Improvements: 5
    • Enhancements: 1
      • OSGI bundle problem - correct version specification syntax for bytebuddy (#679)
    • Documentation: 1
    • Remaining changes: 3
      • Updated release process so that Mockito can continuously deliver high quality features (#683)
      • changed stackoverflow link to mockito questions (#671)
      • Artifacts are now published to ‘mockito’ org in Bintray (#670)

2.1.0 ( 2016-10-03 12:28 UTC)

Brand new Mockito 2

Mockito 2: even cleaner tests!!! THANK you for writing great tests with us, your patience waiting for v2, and kudos to fantastic gang of contributors!

For comprehensive overview of the brand new release see What's new in Mockito 2 wiki page.

2.1.0-RC.2 (2016-09-29 08:50 UTC)

  • Authors: 7
  • Commits: 38
    • 15: Rafael Winterhalter
    • 9: Brice Dutheil
    • 9: Tim van der Lippe
    • 2: Szczepan Faber
    • 1: Bruno Krebs
    • 1: Continuous Delivery Drone
    • 1: Oliver Gierke
  • Improvements: 6
    • New features: 1
      • Added InlineByteBuddyMockMaker which uses the instrumentation API for redefining classes and inlining the mocking logic. (#648)
    • Enhancements: 1
      • Improve exception message to hint at upgrading java minor version to latest (#640)
    • Remaining changes: 4
      • Renamed FailureDetecter to Failure Detector. (#654)
      • Typos in FailureDetecter (#653)
      • A small fix on Mockito javadocs. Adding some styling and an anchor to section 12. (#647)
      • Fixes #640 Warns user to upgrade if Java 8 version is to low (#646)

2.1.0-RC.1 (2016-09-10 17:03 UTC)

  • Authors: 49
  • Commits: 726
    • 210: Brice Dutheil
    • 184: Szczepan Faber
    • 102: Rafael Winterhalter
    • 48: Continuous Delivery Drone
    • 36: Pascal Schumacher
    • 24: Tim van der Lippe
    • 20: Christian Schwarz
    • 15: Lukasz Szewc
    • 15: rafwin
    • 8: david
    • 5: pimterry
    • 4: Joseph Walton
    • 4: Marcin Zajączkowski
    • 3: Hans Joachim Desserud
    • 3: Michal Kordas
    • 2: Carlos Aguayo
    • 2: Clark Brewer
    • 2: Jan Tarnowski
    • 2: Jazzepi
    • 2: Jeffrey Falgout
    • 2: Krzysztof Wolny
    • 2: Philipp Jardas
    • 2: Roland Hauser
    • 2: thesnowgoose
    • 2: Urs Metz
    • 2: Vineet Kumar
    • 1: alberskib
    • 1: Alberto Scotto
    • 1: Andrey
    • 1: Ariel-isaacm
    • 1: ashleyfrieze
    • 1: Bartosz Miller
    • 1: bruce
    • 1: Christian Persson
    • 1: christian.schwarz
    • 1: David Xia
    • 1: Divyansh Gupta
    • 1: Eugene Ivakhno
    • 1: Evgeny Astafev
    • 1: fluentfuture
    • 1: Geoff Schoeman
    • 1: lloydjm77
    • 1: Marcin Zajaczkowski
    • 1: Roi Atalla
    • 1: Scott Markwell
    • 1: Shaun Abram
    • 1: Simen Bekkhus
    • 1: Tokuhiro Matsuno
    • 1: Tom Ball
  • Improvements: 239
    • Incompatible changes with previous major version (v1.x): 13
      • Fixes #194 tweaks any matchers (#510)
      • Moves Reporter friendly exception factory to internal package (#495)
      • Drop support of Runner for <= JUnit4.4 (#402)
      • JUnit runner detects unused stubs (#401)
      • Get rid of ReturnValues (#273)
      • use Gradle built-in osgi plugin (#249)
      • push cglib into a separate jar (#248)
      • Rework stubbing api with consecutive vararg to avoid JDK7+ warnings (#239)
      • Moves responsibility of isTypeMockable to MockMaker (#238)
      • Tweaks Matchers.any family matchers behavior (#194)
      • stop depending on hamcrest internally (#154)
      • stop producing mockito-all (#153)
      • Argument matcher anyXxx() (i.e. anyString(), anyList()) should not match nulls (#134)
    • Java 8 support: 5
      • Moves arity interfaces of java8 helper answers to public API (#617)
      • AdditionalAnswers.answer family leaks internal classes (#614)
      • Added default answer for java.util.stream.Stream (#429)
      • Functional interfaces for Java 8 support in Mockito 2 (#338)
      • Mock returning java.util.Optional should return Optional.empty() by default (Java 8) (#191)
    • Behavior-Driven Development support: 6
      • Add shouldHaveNoMoreInteractions() to BDDMockito (#314)
      • Add BDD version of verifyNoMoreInteractions() (#311)
      • Fixes #203 : Introduce BDD InOrder verification (#222)
      • Fixes #212 : Add shouldHaveZeroInteractions as BDD version of verifyZeroInteractions (#221)
      • Add BDD version of verifyZeroInteractions() (#212)
      • Introduce BDD InOrder verification (#203)
    • Bugfixes: 17
      • Fixes #497 : RETURNS_DEEP_STUBS may try to mock final classes (#615)
      • Mockito.when() fails when method could originate from superclass or interface (#508)
      • Stubbing with some AdditionalMatchers can NPE with null actuals (#457)
      • Fixed OSGi metadata generation (#388)
      • Problem verifying bridge methods (#304)
      • MockUtil.isMock() no longer checks null (#243)
      • mockito 2.0.14 fails to mock jetty httpclient (#233)
      • 2.0.8-beta -> 2.0.9-beta 'Unable to initialize @Spy annotated field (#220)
      • ArgumentCaptor no longer working for varargs (#211)
      • Fixes #197 : Blocks ability to use negative value for timeout() and after() method. (#207)
      • NoJUnitDependenciesTest is failing on Windows machine. (#206)
      • Better protection against incompatible returned value of default answer, and get safely mock name (#202)
      • Mockito.after() method accepts negative timeperiods and subsequent verifications always pass (#197)
      • ArgumentCaptor no longer working for varargs (#188)
      • java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.String (#187)
      • Mockito 1.10.x timeout verification needs JUnit classes (VerifyError, NoClassDefFoundError) (#152)
      • Deep stubbing with generic responses in the call chain is not working (#128)
    • Enhancements: 28
      • make VerificationWithTimeoutTest#shouldAllowMixingOnlyWithTimeout mor… (#587)
      • Checks.checkNotNull should emit IllegalArgumentException instead of NPE (#554)
      • Fully register a class ancestry for GenericMetadataSupport (#549)
      • improve stubbing warnings formatting (#544)
      • improve Mockito.mockingDetails API (#541)
      • Improved exception message for wanted but not invoked (#506)
      • Reference correct types for multiple parent class loader if user class and Mockito are loaded by different loaders (e.g. OSGi) (#471)
      • Refactored mock cache to be non-blocking. (#470)
      • update objenesis version to 2.4 (#447)
      • enable some ignored tests of BridgeMethodsHitAgainTest and DetectingF… (#442)
      • Clean up issues reported by IntelliJ (#436)
      • Inorder timeouts (#424)
      • Fixed #407 Vararg method call on mock object fails (#412)
      • Lazily verify without calling collector.verify() (#389)
      • speedup travis build a bit by downloading gradle-bin instead of gradl… (#371)
      • Issue #345 : Removes previously verified invocations when capturing argument is combined with after and atMost verifiers (#349)
      • Introduce functional interfaces to improve Java 8 utilisation of Mockito 2 (#337)
      • Modify StackTraceFilter to not exclude “good” stack trace elements (#317)
      • Implement VerificationCollector which can collect multiple verifications. (#287)
      • Add new API method to reset invocations of a mock, while maintaining all existing stubbing (#286)
      • Upgraded to Byte Buddy 0.6.11 and took improved features in use. (#242)
      • Test error after upgrading Mockito from 2.0.14-beta to 2.0.15-beta (#237)
      • nicer textual printing of typed parameters (#236)
      • Improves InjectMocks behavior when injectee has multiple fields of the same type (#215)
      • Return empty value for Iterables (#210)
      • Fixes #200 : ArgumentCaptor.forClass is more friendly with generic types (#201)
      • ArgumentCaptor.fromClass's return type should match a parameterized type (#200)
      • Make PropertyAndSetterInjection field sorting consistent (#176)
    • Documentation: 10
      • Mockito Javadoc has a TODO about hamcrest (#593)
      • Reintroduces javadoc stylesheet (#589)
      • Update version explanation with bad beta versions (#588)
      • Update documentation links in travis config comments (#558)
      • Fix again javadoc stylesheet (#552)
      • Changes to InvocationOnMock API should include version info (#420)
      • Fixed method name to verifyNoMoreInteractions (#413)
      • Fixes #312. Added documentation in OngoingStubbing.thenThrow(). (#381)
      • Improve the custom argument matching documentation (#334)
      • ThrowsExceptionClass is urealiable - exception doesn't containt stack trace (#312)
    • Remaining changes: 160
      • Fixes #629 - width of some headers in javadoc (#630)
      • Javadoc CSS width issue (#629)
      • Fixed javadoc documentation in the main class (#628)
      • Release procedure for branches and some javadoc (#627)
      • Ensured javadocs are correct (#626)
      • Tweak javadoc (#625)
      • Updated the javadocs (#623)
      • Allow build script to release any release parent branch (#622)
      • Fixes #548 from now on verification happens always call in other thre… (#619)
      • Fixes #595, going toward 2.1.0 instead of 2.0.0 (#605)
      • Release notes group improvements by labels (#604)
      • Release notes group improvements by labels (#603)
      • suppressed compiler warning and unchecked collections cast (#600)
      • Improved release notes generation (#599)
      • Generated release notes contain unsorted and duplicate committers (#598)
      • Removed TODO and dead code (#597)
      • Handle beta non-semantic versioning scheme (#595)
      • Make the build script aware of the release branch (#594)
      • stylesheet-tweaks-for-openjdk6 (#592)
      • refactored ArgumentMatchingTool to a static utillity class (#591)
      • removed package org.mockito.internal.listeners (#590)
      • fix some rawtype warnings (#579)
      • made some timeouts in VerificationAfterDelayTest and VerificationWith… (#578)
      • Bumped Gradle and enabled Build Scans (#576)
      • fix some rawtype warnings (#574)
      • replace TestBase#assertNotEquals with AssertJ #isNotEqualTo (#573)
      • replace TestBase#assertContainsType(final Collection<?> list, final C… (#572)
      • Pretty print primitive and wrappers types in Maps (#571)
      • Improved the public API of MockingDetails (#569)
      • Ensured that MockitoJUnitRunner is thread safe wrt unused stubs detection (#568)
      • Make travis use OracleJDK7 instead of OpenJDK7 (#566)
      • Publish Mockito build results to Gradle Build Scans (#564)
      • Fixes #554 : Checks.checkNotNull now throws IAE instead of NPE (#560)
      • Replace or remove code.google.com links in documentation (#557)
      • Move Mockito internal classes to internal package (#556)
      • JUnit rules report unused stubs - fixes #384 (#555)
      • Uses the hosts addon in order to avoid the buffer overflow affecting … (#553)
      • Fixed #538 changed error message in case initialization for mock injection fails. (#550)
      • VerificationWithTimeoutTest is unstable (#548)
      • refactored ObjectMethodsGuru to a static utility class (#547)
      • inlined ArrayUtils.isEmpty() in ArgumentsProcessor (#540)
      • Improve error message when @InjectMocks is uses on an interface or enum field (#538)
      • Move release skipping logic to Gradle (#536)
      • refactored SuperTypesLastSorter to a static utility class (#535)
      • Fix typo in Javadocs (#532)
      • Missing generics info on collection matchers (#528)
      • Add regression test for #508 (#525)
      • made some timeouts in VerificationAfterDelayTest and VerificationWith… (#523)
      • replace TestBase#assertContains(String sub, String string) with Asser… (#519)
      • Verify build on Travis also with Java 7 and 8 (#518)
      • Make ciBuild depends also on subprojects state (#517)
      • replace TestBase#assertNotContains(String sub, String string) with As… (#516)
      • refactored AllInvocationsFinder and VerifiableInvocationsFinder to st… (#515)
      • refactored MockUtil to a static utility class (#426) (#514)
      • replace TestBase#assertContainsIgnoringCase(String sub, String string… (#513)
      • fix some raw type warnings in tests (#512)
      • Fix some warnings (#511)
      • Improved exception message - fixes issue 506 (#507)
      • fixed some rawtype warnings (#504)
      • refactored NonGreedyNumberOfInvocationsInOrderChecker to a static uti… (#503)
      • refactored ArgumentsComparator to a static utility class (#426) (#502)
      • refactored TestMethodsFinder to a static utility class (#426) (#501)
      • remove unused imports (#498)
      • DEEP_STUBS tries to mock final class (#497)
      • Renames Matchers to ArgumentMatchers to avoid name clash with Hamcrest Matchers class (#496)
      • Code cov on releases (#493)
      • Revert “Remove deprecated method” (#492)
      • Deprecate whitebox and corresponding verboserunner and junitfailureha… (#491)
      • Cleanup: removed dead/unnecessary classes (#486)
      • Update version scheme to publish release candidate (#483)
      • Exclude mockito internal packages from the Javadoc (#481)
      • fix grammar of sentence in Mockito javadoc (#479)
      • refactored ThreadSafeMockingProgress to a singleton (#476)
      • Typo fix (#475)
      • fix some rawtype warnings in tests (#469)
      • add missing since javadoc tags for recently added methods and classes… (#468)
      • fix some rawtype warnings in tests (#467)
      • fix some rawtype warnings in tests (#464)
      • refactored InvocationsFinder to static utility class (#462)
      • delete disabled test for removed objenesis missing reporting feature (#460)
      • fix some rawtype warnings in tests (#459)
      • remove dead code in ClassCacheVersusClassReloadingTest (#458)
      • fix some rawtype warnings (#456)
      • activate VerificationWithTimeoutTest#shouldAllowTimeoutVerificationIn… (#455)
      • Modified JavaDoc for ArgumentMatcher (#454)
      • javadoc: improve grammar of some sentences (#452)
      • Refactored Timeout and After concurrent test (#451)
      • Make tests which test for timeouts with Thread#sleep more lenient. (#446)
      • Add PARAMETER ElementType to @Mock (#444)
      • downgrade assertj-core version to 1.7.1 because this version is java … (#443)
      • delete ignored cglib related tests (#441)
      • PluginStackTraceFilteringTest failing locally (#435)
      • Very tiny typo. (#434)
      • Fixes #426 Refactored InvocationMarker to a static utility class (#432)
      • Fixes #426 Dropped class HandyReturnValues (#431)
      • Refactored class Reporter to a static utillity (#427)
      • BDDMockito: rename willNothing to willDoNothing (#419)
      • Vararg method call on mock object fails when used org.mockito.AdditionalAnswers#delegatesTo (#407)
      • Fixes #374 Removed deprecated classes and methods (#404)
      • Bump JUnit to 4.12 (#400)
      • Mocking Class that inherits from Abstract class in a different JAR doesn't override methods (#398)
      • Remove deprecated code (#386)
      • OSGi metadata is incorrect (#385)
      • JUnit rule logs warnings about unsued / misused stubs (#384)
      • correct package declaration of VerificationWithDescriptionTest (#382)
      • Remove duplication. (#377)
      • Fix typo in example in javadoc. (#376)
      • Remove deprecated API from Mockito 2 (#374)
      • Fixes #365 Simplify the InvocationOnMock-API to get a casted argument (#373)
      • Travis / CI improvements (#369)
      • Simplify the InvocationOnMock-API to get a casted argument (#365)
      • Use the new issue/pr templates (#361)
      • Show correct location of unwanted interaction with mock when using MockitoJUnitRule (#344)
      • Fixes #256 :Alternative fix to #259, windows build (#342)
      • Mockito Hamcrest integration does not handle argument primitive matching well (#336)
      • Ensure CI build fails when release task breaks (#333)
      • Move build and release automation logic to Kotlin (#331)
      • Minor formatting, typo and clarification fixes in README (#313)
      • Tweaks to the main Mockito javadocs to aid readability (#309)
      • Eliminate direct dependency on ObjenesisInstantiator (#306)
      • Refactor some utilities and TODO done (#301)
      • Update StackOverflow link to Mockito tag (#296)
      • Removed deprecated ReturnValues and all it's occurrences (#294)
      • Remove validateSerializable() (#293)
      • Add optional answer to support mocked Builders (#288)
      • Correcting public website url in Maven POM (#281)
      • Reintroduce null check on MockUtil.isMock() (#280)
      • Issue #268: Added support for generic arrays as return types. (#270)
      • RETURN_DEEP_STUBS and toArray(T[]) stops working with versions > 1.9.5 (#268)
      • Ignore Groovy meta methods when instrumenting. (#266)
      • Fix typo in docs, missing breaklines. (#264)
      • Fixes #260: Typo in documentation (#261)
      • Typo in documentation (#260)
      • Removing new line in bottom script. it seems that javadoc… (#259)
      • Minify the JS file (#258)
      • Upgraded to Byte Buddy 0.6.12. (#257)
      • task mockitoJavadoc fails when compiling in windows (#256)
      • [#251] Migrate Fest Assert code to AssertJ (#252)
      • Unit tests improvements: migrate from legacy FEST Assert code to AssertJ (#251)
      • no jars in source code (#250)
      • Serializable check is too harsh (#245)
      • Replaces cobertura/coveralls by jacoco/codecov (#241)
      • Fixes coverage reports (#240)
      • Fixes #220 constructor invoking methods raise NPE (#235)
      • Cannot instantiate type with public method of a public parent class having a non public types in signature (#234)
      • Fixes #228: fixed a verify() call example in @Captor javadoc (#229)
      • @Captor javadoc contains a wrong call example (#228)
      • [#206] Fix issue related to windows path (#223)
      • Add .gitattributes to enforce LF (#219)
      • InjectMocks injects mock into wrong field (#205)
      • mockito spy lost annotations from the spied instance class (#204)
      • Fixes typo (#184)
      • Replace CGLIB by Bytebuddy (#171)
      • @InjectMocks and @Spy on same field should cause MockitoException (#169)
      • GitHubIssues fetcher is now aware of GitHub pagination (#163)
      • Excluded missing transitive dependency of the coveralls gradle plugin to fix failing build. (#161)
      • Internal Comparator violates its general contract (#155)
      • Concise way to collect multiple verify failures, ideally with JUnitCollector or derivative (#124)
      • Allow convenient spying on abstract classes (#92)
      • Added custom failure message to Mockito.verify. Issue 482 (#68)

1.10.19 (2014-12-31 17:04 UTC)

  • Authors: 4
  • Commits: 10
    • 6: pbielicki
    • 2: Szczepan Faber
    • 1: Brice Dutheil
    • 1: Radim Kubacki
  • Improvements: 2
    • Deep stubbing with generic responses in the call chain is not working (#128)
    • Make org.mockito.asm.signature package optional in Import-Packages. (#125)

1.10.18 (2014-12-30 09:45 UTC)

  • Authors: 4
  • Commits: 14
    • 11: Szczepan Faber
    • 1: pbielicki
    • 1: Brice Dutheil
    • 1: Matthew Dean
  • Improvements: 2
    • Fix grammar issues in the javadoc documentation (#149)
    • 1.10 regression (StackOverflowError) with interface where generic type has itself as upper bound (#114)

1.10.17 (2014-12-16 09:38 UTC)

  • Authors: 2
  • Commits: 11
    • 8: Szczepan Faber
    • 3: jerzykrlk
  • Improvements: 2
    • Make Mockito JUnit rule easier to use (#140)
    • Tidy-up public API of Mockito JUnit rule (#139)

1.10.16 (2014-12-14 23:56 UTC)

  • Authors: 1
  • Commits: 15
    • 15: Szczepan Faber
  • Improvements: 2
    • Promote incubating features (#137)
    • Automate maven central sync (#136)

1.10.15 (2014-12-12 23:42 UTC)

  • Authors: 3
  • Commits: 27
    • 24: Szczepan Faber
    • 2: Lovro Pandzic
    • 1: Dhruv Arora
  • Improvements: 2
    • Introduce PluginSwitch extension point (#135)
    • bdd mockito cleanup (#100)

1.10.14 (2014-12-02 10:01 UTC)

  • Authors: 3
  • Commits: 23
    • 16: Szczepan Faber
    • 5: Werner Beroux
    • 2: fluentfuture
  • Improvements: 1
    • @Spy annotation supports abstract classes (#126)

1.10.13 (2014-11-22 21:28 UTC)

  • Authors: 2
  • Commits: 32
    • 31: Szczepan Faber
    • 1: fluentfuture
  • Improvements: 2
    • Problem spying on abstract classes (#122)
    • tidy-up and rework release notes automation (#119)

1.10.12 (2014-11-17 00:09 UTC)

Special thanks to Ben Yu for the original idea and implementation of the abstract classes spying!

  • Authors: 2
  • Commits: 23
    • 22: Szczepan Faber based on Ben Yu's PR
    • 1: jerzykrlk
  • Improvements: 2
    • Other: 2
      • Make the build working on windows (#115)
      • Allow convenient spying on abstract classes (#92)

1.10.11 (2014-11-15 17:46 UTC)

  • Authors: 3
  • Commits: 23
    • 17: Szczepan Faber
    • 3: Marcin Zajaczkowski, David Maciver
  • Improvements: 1
    • Other: 1
      • Allow instances of other classes in AdditionalAnswers.delegatesTo (#112)

1.10.10 (2014-10-28 07:26 UTC)

  • Authors: 2
  • Commits: 2
    • 1: Szczepan Faber, Ross Black
  • Improvements: 1
    • Improved exception handling of AdditionalAnswers#delegatesTo (#113)

1.10.9 (2014-10-22 08:51 UTC)

  • Authors: 1
  • Commits: 15
    • 15: Szczepan Faber
  • Improvements: 2
    • Improve internal implementation so that it is possible to implement mocking abstract classes (#107)
    • Continuous deployment should not release new version if binaries are equal (#105)

1.10.8 (2014-10-10 00:58 UTC)

  • Authors: 1
  • Commits: 3
    • 3: Brice Dutheil
  • Improvements: 1
    • Fixes issue #99 : RETURNS_DEEP_STUBS automatically tries to create serializable mocks (#103)

1.10.7 (2014-10-08 18:52 UTC)

  • Authors: 2
  • Commits: 4
    • 2: Szczepan Faber
    • 2: Continuous Delivery Drone
  • Improvements: 2
    • possible NPE exception when class cannot be mocked via PowerMockito (#98)
    • Documentation mentions non-existing version 1.9.8 in few places (#101)

1.10.6 (2014-10-07 19:38 UTC)

  • Authors: 1
  • Commits: 4
    • 4: Szczepan Faber
  • Improvements: 1
    • Document minimum JUnit requirement for MockitoJUnitRule (#96)

1.10.5 (2014-10-06 19:20 UTC)

  • Authors: 2
  • Commits: 8
  • Improvements: 1
    • Added a Mockito @Rule for JUnit (#85)

1.10.4 (2014-09-28 18:20 UTC)

  • Authors: 1
  • Commits: 4
    • 4: Szczepan Faber
  • Improvements: 1
    • Improve exception messages when user mocks a method declared on non-public parent (#90)

1.10.3 (2014-09-27 20:45 UTC)

  • Authors: 2
  • Commits: 4
    • 2: Marcin Grzejszczak, Szczepan Faber
  • Improvements: 1
    • Fix flaky test: TimeoutTest (#66)

1.10.2 (2014-09-26 16:37 UTC)

  • Authors: 2
  • Commits: 8
    • 5: Szczepan Faber
    • 3: Hugh Hamill
  • Improvements: 2
    • Fixed DelegatingMethod.equals() so that it's easier to extend Mockito by custom verification modes (#87)
    • Ensure continuous deployment process does not produce “-dev” versions (#88)

1.10.0 (2014-09-25 22:25 UTC)

Thanks everybody for great contributions! Next release should come quicker thanks to continuous deployment goodness.

  • Authors: 25
  • Commits: 307
    • 134: Brice Dutheil
    • 117: Szczepan Faber
    • 10: Marcin Grzejszczak
    • 6: Tim Perry
    • 5: Lovro Pandzic
    • 4: alberski
    • 3: Dmytro Chyzhykov, Gunnar Wagenknecht, Kamil Szymanski, pimterry, Ian Parkinson
    • 2: Emory Merryman, U-Michal-Komputer\Michal
    • 1: Vivian Pennel, Kuangshi Yan, Marius Volkhart, Marcin Zajaczkowski, Andrei Solntsev, Markus Wüstenberg, Marius Volkhart, Ken Dombeck, jrrickard, Philip Aston, Ivan Vershinin, ludovic.meurillon@gmail.com
  • Improvements: 21
    • Added useful links to README.md (#58)
    • Fixed wrong javadoc for AdditionalAnswers (#56)
    • Enabled continuous integration with Travis CI and coverage tracking with coveralls (#18)
    • Verification with timout measures time more more accurately (#15)
    • Allow calling real implementation of jdk8 extension methods (#39)
    • Deprecated timeout().never(), in line with timeout().atMost() (#14)
    • New “then” method for BDD-style interaction testing (#38)
    • Improved behavior of EqualsWithDelta with regards to null handling (#21)
    • New “getArgumentAt” method for convenient implementation of custom Answers (#41)
    • Coveralls coverage tracking tool allows Mockito source code preview (#62)
    • Improve NoInteractionsWanted report to include the name of the mock (#63)
    • New lightweight, stub-only mocks for scenarios where high performance is needed (#86)
    • Improved the javadoc example of custom Answer implementation (#22)
    • Avoided classloader issue when testing in Eclipse plugins environment (#24)
    • Removed .java files from main mockito jar artifacts (#28)
    • Smarter constructor injection by choosing “biggest” constructor instead of the default one (#29)
    • New “MockingDetails.getInvocations” method for inspecting what happened with the mock (#10)
    • Deep stub style mocks can be serialized (#30)
    • Improved MockitoTestNGListener by making it reset argument captors before each test (#6)
    • Mock serialization/deserialization across classloader/JVM (#5)
    • Fixed the behavior of compareTo method of the mock objects (#32)

Older implemented improvements were managed in the original issue tracker and can be viewed at Google Code site.

1.9.5 (06-10-2012)

Few minor bugfixes and a relatively small extension point added to improve the android experience.

  • StackTraceCleaner API - to improve the experience of mocking on android platform we've added an extension point for cleaning the stack traces. This allows the friends behind the dexmaker to implement custom stack trace filter and hence make the Mockito verification errors contain clean and tidy stack traces. Clean stack trace is something Mockito always cares about! Thanks a lot Jesse Wilson for reporting, submitting the initial patch and validating the final solution.
  • javadoc fix (issue 356) - thanks konigsberg for reporting and patching and Brice for merging.
  • @InjectMocks inconsistency between java 6 and 7 (issue 353) - neat Brice's work.
  • fixed a problem with autoboxed default return values, needed for the MockMaker extension point (issue 352). Thanks so much Jesse Wilson for reporting and the patch, and Brice for merging!

1.9.5 rc-1 (03-06-2012)

Thanks a lot to all community members for reporting issues, submitting patches and ideas! The complete list of bug fixes and features is listed here.

  • MockMaker API. The MockMaker extension point enables replacing the default proxy-creation implementation (cglib) with... something else :) For example, with a help from dexmaker you will be able to use Mockito with Android tests. Special thanks to friends from Google: Jesse Wilson and Crazy Bob for initiating the whole idea, for the patches, and for friendly pings to get the new feature released.
  • MockingDetails can be used to inspect objects and find out if they are Mockito mocks or spies. Special thanks to David Wallace, one of the new members of the Mockito team, who was championing the feature.
  • The delegating answer is useful for spying some objects difficult to spy in the typical way. Thanks to Brice Dutheil (who is one of the most active contributors :) for making it happen!
  • Driven by changes needed by the MockMaker API we started externalizing some internal interfaces. Hence some new public types. Down the road it will make Mockito more flexible and extensible.
  • We moved some classes from the public interface ‘org.mockito.exceptions’ to an internal interface (Pluralizer, Discrepancy, JUnitTool). Don't worry though, those classes were not exposed by our API at all so chance that someone is uses them is minimal. Just in case, though, I left the deprecated variants.
  • Special thanks for the participants of Hackergarten Paris:
    • Eric Lefevre for his contribution on the simple answers, yet useful.
    • José Paumard, who contributed several issues including the delegating answer.
    • Julien Meddah for an even better error reporting.

1.9.0 (16-12-2011)

If you're upgrading from 1.8.5 please read about all the goodies delivered by 1.9.0-rc1! This release contains 2 bug fixes and 1 awesome improvement. Full details of this release are listed here.

  • Thanks to our mysterious friend Dharapvj, we now have most beautiful documentation. Take a look here
  • Credits to Daniel Spilker for helping out with the issue related to mocks in superclasses
  • Dpredovic helped making the Mockito.reset() even better :)

1.9.0-rc1 (23-07-2011)

  • Annotations are smarter. They can use constructor injection and instantiate objects. More information here.
  • To keep the test code slim you can now create a stub in one line.
  • Made it possible to verify interactions ignoring stubs.
  • Fixed various bugs & enhancements. Full list is here.
  • THANKS to all the community members who helped improving Mockito! Brice Dutheil is a new Mockito champion, having contributed a lot of excellent code in the recent months! Without him, there wouldn‘t be any release and your mailing list queries wouldn’t be answered so promptly! Brice - thank you and welcome to the team! Some fresh mojitoes ought to be served to:
  • Steven Baker for sharing the one-liner stubs idea
  • Konrad Garus for reporting the inconsistencies in the docs & exception messages
  • Murat Knecht for the verbose logging
  • Krisztian Milesz for the maven javadoc enhancement
  • Edwinstang for patience and patches to injection logic
  • Kristofer Karlsson for important bug reports and help with the mailing list
  • Gordon Tyler for his vigilance and help on getting the main docs sorted
  • lucasmrtuner for patches
  • jakubholy.net for excellent doc updates
  • Andre Rigon for patches on constructor injection
  • Ulrich Hobelmann for important doc updates
  • Peter Knista, Ivan Koblik, Slawek Garwol, Ruediger Herrmann, Robert Thibaut, Clive Evans for reporting important issues
  • rdamazio, kenpragma, mszczytowski, albelsky, everflux, twillhorn, nurkiewicz, hanriseldon, exortech, edwinstang, dodozhang21 for some more issue reports :)

Older versions are documented here.