Changelog History
Page 1
-
v2.2.0 Changes
September 08, 2019 -
v2.1.0 Changes
December 31, 2018 -
v2.0.0 Changes
October 30, 2018๐ 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-reflect
anymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1
is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as null
quirk.
- 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. - ๐คก The artifact to include is now
-
v2.0.0-RC3 Changes
October 09, 2018๐ 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-reflect
anymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1
is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as null
quirk.
- 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
doReturn
function (#274)
๐ This should be the last RC before
2.0.0
is released, which will be some time after Kotlin 1.3 is released. - ๐คก The artifact to include is now
-
v2.0.0-RC2 Changes
October 09, 2018๐ 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-reflect
anymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1
is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as null
quirk.
- 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
: - ๐คก The artifact to include is now
-
v2.0.0-RC1 Changes
June 21, 2018๐ 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-reflect
anymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1
is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as null
quirk.
- 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)
- ๐คก The artifact to include is now
-
v2.0.0-alpha04 Changes
May 10, 2018 -
v2.0.0-alpha03 Changes
February 03, 2018- โก๏ธ Updates Mockito to
2.13.0
- โ Adds support for coroutines
- โก๏ธ Updates Mockito to
-
v2.0.0-alpha02
December 03, 2017 -
v2.0.0-alpha01 Changes
November 30, 2017๐ 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-reflect
anymore. This solves a few conflict issues when using different Kotlin versions. The artifactmockito-kotlin-kt1.1
is therefore dropped.- This removes the creation of arbitrary instances through reflection, which was not necessary anyway due to the
T as null
quirk.
- 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-alpha01'
๐ If you included a dependency on
kotlin-reflect
for Mockito-Kotlin only, you can remove it. - ๐คก The artifact to include is now