use of org.mockito.exceptions.misusing.UnfinishedVerificationException in project mockito by mockito.
the class FindingRedundantInvocationsInOrderTest method shouldValidateState.
@Test
public void shouldValidateState() throws Exception {
//when
InOrder inOrder = inOrder(mock);
// mess up state
verify(mock);
//then
try {
inOrder.verifyNoMoreInteractions();
fail();
} catch (UnfinishedVerificationException e) {
}
}
Aggregations