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

Changelog History
Page 1

  • v2.2.0

    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

    December 31, 2018

    🆕 New in this version:

    • ➕ Add BDD will extension function #313
    • 🤡 Coroutines verify with verification mode #318 (#317)
  • v2.0.0

    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

    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

    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

    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

    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

    February 03, 2018
    • ⚡️ Updates Mockito to 2.13.0
    • ➕ Adds support for coroutines
  • v2.0.0-alpha02

    December 03, 2017
  • v2.0.0-alpha01

    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.