What is the difference between verifyNoMoreInteractions and verifyZeroInteractions in Mockito? Are the two same method?
Apparently, verifyZeroInteractions
it is the same as verifyNoMoreInteractions
in 2.x:
public static void verifyZeroInteractions(Object... mocks) {
MOCKITO_CORE.verifyNoMoreInteractions(mocks);
}
But I guess it is going to change in 3.x - https://github.com/mockito/mockito/issues/989
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With