Releases: mockito/mockito-kotlin
2.2.9
Changelog generated by Shipkit Changelog Gradle Plugin
2.2.9
- 2021-03-23 - 1 commit(s) by Jan-Hendrik Peters
- correct mvn badge (#416)
2.2.8
Changelog generated by Shipkit Changelog Gradle Plugin
2.2.8
- 2021-03-22 - 1 commit(s) by Mario Rezende
- fix: package groupId in install section (#414)
2.2.7
Changelog generated by Shipkit Changelog Gradle Plugin
2.2.7
- 2021-03-22 - 2 commit(s) by Szczepan Faber
- Fixed group assignment (#413)
2.2.6
Changelog generated by Shipkit Changelog Gradle Plugin
2.2.6
- 2021-03-22 - 22 commit(s) by Szczepan Faber, Tim van der Lippe
- Enabled automated releases (#412)
- Enabled releases to Maven Central (#411)
- Rename packages to org.mockito.kotlin (#410)
- Automated releases (#409)
- Enabled releases to GitHub and Bintray (#405)
- Added CI + Bintray releases (#402)
- Add acknowledgements section to the README (#399)
2.2.0
2.1.0
2.0.0
Version 2.x introduces some breaking changes:
- The artifact to include is now
com.nhaarman.mockitokotlin2:mockito-kotlin:x.x.x; - The main package to import from is now
com.nhaarman.mockitokotlin2; - Mockito-Kotlin does not depend on
kotlin-reflectanymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as nullquirk.
- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
To include this, use the following:
testCompile 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0'
If you included a dependency on kotlin-reflect for Mockito-Kotlin only, you can remove it.
2.0.0-RC3
Version 2.x will introduce some breaking changes:
- The artifact to include is now
com.nhaarman.mockitokotlin2:mockito-kotlin:x.x.x; - The main package to import from is now
com.nhaarman.mockitokotlin2; - Mockito-Kotlin does not depend on
kotlin-reflectanymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as nullquirk.
- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
To try this release, use the following:
testCompile 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0-RC3'
If you included a dependency on kotlin-reflect for Mockito-Kotlin only, you can remove it.
Changes since 2.0.0-RC2:
- Updates Mockito to 2.23.0
- This enables support for stable coroutines
- Include
argThat(ArgumentMatcher<T>)function #281 - Remove a deprecated
doReturnfunction (#274)
This should be the last RC before 2.0.0 is released, which will be some time after Kotlin 1.3 is released.
2.0.0-RC2
Version 2.x will introduce some breaking changes:
- The artifact to include is now
com.nhaarman.mockitokotlin2:mockito-kotlin:x.x.x; - The main package to import from is now
com.nhaarman.mockitokotlin2; - Mockito-Kotlin does not depend on
kotlin-reflectanymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as nullquirk.
- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
To try this release, use the following:
testCompile 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0-RC2'
If you included a dependency on kotlin-reflect for Mockito-Kotlin only, you can remove it.
Changes since 2.0.0-RC1:
2.0.0-RC1
Version 2.x will introduce some breaking changes:
- The artifact to include is now
com.nhaarman.mockitokotlin2:mockito-kotlin:x.x.x; - The main package to import from is now
com.nhaarman.mockitokotlin2; - Mockito-Kotlin does not depend on
kotlin-reflectanymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as nullquirk.
- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
To try this release, use the following:
testCompile 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0-RC1'
If you included a dependency on kotlin-reflect for Mockito-Kotlin only, you can remove it.
Changes since 2.0.0-alpha04:
- Updates Mockito to 2.19.0
- Support mocking with constructor arguments. This breaks code that currently uses useConstructor = true, which can simply be replaced by useConstructor = parameterless(). (#266)