-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove verifyZeroInteractions? #446
Comments
Ah yes, we should remove it from |
rashadsookram
added a commit
to rashadsookram/mockito-kotlin
that referenced
this issue
Oct 8, 2021
2 tasks
rashadsookram
added a commit
to rashadsookram/mockito-kotlin
that referenced
this issue
Oct 8, 2021
... to 4.0.0. Fixes mockito#446.
rashadsookram
added a commit
to rashadsookram/mockito-kotlin
that referenced
this issue
Oct 8, 2021
... to 4.0.0. Fixes mockito#446.
TimvdLippe
pushed a commit
that referenced
this issue
Oct 8, 2021
This also removes `verifyZeroInteractions`, which was removed in Mockito 4. Fixes #446.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to update to Mockito 4, and I noticed that I was getting
NoSuchMethodError
s when using Mockito-Kotlin'sverifyZeroInteractions
.After looking into it, it turns out that this was happening because
Mockito.verifyZeroInteractions
was removed as of Mockito 4, and Mockito-Kotlin hasn't been updated to build against Mockito 4 yet. I also noticed thatverifyZeroInteractions
has been marked as deprecated in Mockito-Kotlin, but there hasn't been a new release since then.If there are plans of releasing a Mockito-Kotlin 4 soon, maybe
verifyZeroInteractions
can be removed? Or if there's going to be another update for 3.x first, maybe the implementation ofverifyZeroInteractions
can be changed to call through toverifyNoMoreInteractions
instead, so that it's usable (but still deprecated) with Mockito 4?The text was updated successfully, but these errors were encountered: