mockito-kotlin v2.0.0 Release Notes
Release Date: 2018-10-30 // over 5 years ago-
๐ 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