Issue
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?
Solution
Mockito.verify(MOCKED_OBJ, Mockito.times(number)).YOUR_METHOD_CALL();
Mockito.verify(MOCKED_OBJ, Mockito.atLeast(number)).YOUR_METHOD_CALL();
More information is here
Answered By - atti
Answer Checked By - Pedro (JavaFixing Volunteer)