|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VerificationMode
Allows verifying that certain behavior happened at least once / exact number of times / never. E.g:
verify(mock, times(5)).someMethod("was called five times");
verify(mock, atLeastOnce()).someMethod("was called at least once");
verify(mock, never()).someMethod("was never called");
times(1) is the default and can be omitted
See examples in javadoc for Mockito.verify(Object, VerificationMode)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||