Releases: mockito/mockito-kotlin
Releases · mockito/mockito-kotlin
0.11.0
- More convenient API for stubbing nullable types
- Adds a fallback to the constructors when mocking a class fails
0.10.1
- 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
- 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
- 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
- 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
- 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
- Upgrades Mockito to
2.0.99-beta
.
This removes the stub
method, like in Mockito.
- Accept stubbing lamdas in
mock()
0.5.2
- Updates the Kotlin version to
1.0.3
(#51)
- Use explicit return types for calls to Mockito (#50)
doReturn
accepts null
values (#34)