mockito / mockito-kotlin

Using Mockito with Kotlin
MIT License
3.11k stars 202 forks source link

Mockito 3 support #355

Closed jaredsburrows closed 3 years ago

jaredsburrows commented 5 years ago

Mockito was recently released - https://github.com/mockito/mockito/releases

nhaarman commented 5 years ago

Without having tried it, since there aren't any API changes - only java 8 is now required - it should work if you manually require 3+?

jaredsburrows commented 5 years ago

Based on this PR: https://github.com/jaredsburrows/android-gif-example/pull/106, we should be good. It works fine in my Robolectric tests atleast.

azizbekian commented 4 years ago

@nhaarman , fyi, we've had this subtle issue when using mockito3 with mockito-kotlin.

aaronweihe commented 4 years ago

@nhaarman , fyi, we've had this subtle issue when using mockito3 with mockito-kotlin.

Mockito 3.5.12+ has byte buddy 1.10.15 so this should no longer a problem with mockito 3.

aaronweihe commented 4 years ago

should a 3.x branch open for mockito 3 upgrade?