mockito / mockito-kotlin

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

Missing !! on after() #348

Closed xgleich1 closed 5 years ago

xgleich1 commented 5 years ago

Hi and first of all a huge thanks for your library!

While using it to test asynchronous code I found a minor oversight:

fun after(millis: Long): VerificationAfterDelay? { return Mockito.after(millis) }

The return type is nullable. This gives me an compile error when using it in verify().

Or is this maybe intented?

Kind regards Daniel

xgleich1 commented 5 years ago

Huge thanks for fixing this issue very quickly!