Skip to content

Releases: mockito/mockito-kotlin

0.11.0

06 Dec 12:38
Compare
Choose a tag to compare
  • More convenient API for stubbing nullable types
  • Adds a fallback to the constructors when mocking a class fails

0.10.1

03 Nov 10:52
Compare
Choose a tag to compare
  • Fixes a NPE thrown when trying to mock a generic type (#104)
  • Doesn't try to mock primitive and wrapper types anymore (#106)

0.10.0

03 Nov 10:47
Compare
Choose a tag to compare
  • Updates Mockito to 2.2.9
  • Fixes an infinite loop caused by 'copy constructors' (#99)
  • Adds nullableArgumentCaptor to be able to work with lists of nullables (#100)
    • Change in the way an 'easiest' constructor is found by skipping optional parameters (#101)

0.9.0

21 Oct 21:01
Compare
Choose a tag to compare
  • First release on Maven Central
    • Add mavenCentral() to your repositories if necessary.
  • Updates Mockito to 2.2.6
  • Marks deprecated methods as ERROR, ReplaceWith suggestions are supplied.

0.8.0

13 Oct 14:06
Compare
Choose a tag to compare
  • Updates Mockito to 2.2.1
  • Fixes issues:
    • #37 - ClassCastException when using mock-maker-inline
    • #75 - Attempting to verify mocked calls with a class that has a string array parameter in its constructor throws UnsupportedOperationException
  • Add doThrow infix methods to OngoingStubbing (#90)
  • Deprecates capture { } in favor of argThat { }, argForWhich { } or check { } (#91)

0.6.1

09 Sep 10:48
Compare
Choose a tag to compare
  • Upgrades Mockito version to 2.1.0-beta.125
  • Improve easiestConstructor() to sort by parameters size
  • Deprecate methods that are deprecated in Mockito
  • Make anyArray() accept nullable types

0.6.0

09 Sep 10:44
Compare
Choose a tag to compare
  • Upgrades Mockito to 2.0.99-beta.
    This removes the stub method, like in Mockito.
  • Accept stubbing lamdas in mock()

0.5.2

26 Jul 20:09
Compare
Choose a tag to compare
  • Updates the Kotlin version to 1.0.3 (#51)
  • Use explicit return types for calls to Mockito (#50)
  • doReturn accepts null values (#34)

0.3.1

27 Mar 14:23
Compare
Choose a tag to compare
0.3.1

0.1.5

24 Jan 21:06
Compare
Choose a tag to compare
0.1.5