I would like to verify there were exactly x interactions with might db mock object. Is there something similar to the ‘verifyZeroInteractions()’ method for doing so?
Advertisement
Answer
Mockito.verify(MOCKED_OBJ, Mockito.times(number)).YOUR_METHOD_CALL(); Mockito.verify(MOCKED_OBJ, Mockito.atLeast(number)).YOUR_METHOD_CALL();
More information is here