Permalink
1059 lines (905 sloc) 58.1 KB

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
      • Verification listeners (#719)

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.

  • 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.