All Versions
11
Latest Version
Avg Release Cycle
81 days
Latest Release
1689 days ago

Changelog History
Page 1

  • v2.2.0 Changes

    September 08, 2019
    • โž• Add reified support for refEq like other matchers #329
    • ๐Ÿคก Make after() return type non-null #351
    • ๐Ÿ‘Œ Support lenient in mock and withSettings #353
  • v2.1.0 Changes

    December 31, 2018

    ๐Ÿ†• New in this version:

    • โž• Add BDD will extension function #313
    • ๐Ÿคก Coroutines verify with verification mode #318 (#317)
  • 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 artifact mockito-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.

    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.

  • 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 artifact mockito-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.

    ๐Ÿš€ 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.

  • 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 artifact mockito-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.

    ๐Ÿš€ 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:

    • โšก๏ธ Updates Mockito to 2.21.0
    • ๐Ÿคก Inline whenever to let Mockito's UnfinishedStubbing messages work (#278)
    • ๐Ÿคก Replace OngoingStubbing.doReturn(List) with doReturnConsecutively (#279)
  • 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 artifact mockito-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.

    ๐Ÿš€ 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)
  • v2.0.0-alpha04 Changes

    May 10, 2018
    • ๐Ÿคก Makes inOrder inline (#248)
    • ๐Ÿคก Adhere to ArgumentMatcher contract (#253)
    • ๐Ÿคก Includes overloads for argumentCaptor (#254)

      com.nhaarman.mockitokotlin2:mockito-kotlin:2.0.0-alpha04

  • v2.0.0-alpha03 Changes

    February 03, 2018
    • โšก๏ธ Updates Mockito to 2.13.0
    • โž• Adds support for coroutines
  • 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 artifact mockito-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.

    ๐Ÿš€ 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.