mockito / mockito-kotlin

Using Mockito with Kotlin
MIT License
3.1k stars 200 forks source link

Mark verifyZeroInteractions as deprecated and add verifyNoInteractions #383

Closed Ingo-FP-Angel closed 3 years ago

Ingo-FP-Angel commented 4 years ago

verifyZeroInteractions is an alias for Mockito.verifyZeroInteractions which has the following comments

I've seen several people assuming that verifyZeroInteractions would behave like what Mockito.verifyNoInteractions does, not being aware it's essentially the same as verifyNoMoreInteractions.

At the moment, when using mockito-kotlin, as a programmer I don't see that the underlying mockito method for verifyZeroInteractions is deprecated and I don't have an alias for verifyNoInteractions.

So it would be nice to

Edit: this would require to update Mockito Core to 3.x