Home | History | Annotate | Download | only in mockito

Lines Matching defs:only

97  * //You can mock concrete classes, not only interfaces

133 * Other words: <b>the order of stubbing matters</b> but it is only meaningful rarely,
290 * interactions</b> one-by-one but only those that you are interested in
293 * Also, you can create InOrder object passing only mocks that are relevant for
302 * //using mocks - only mockOne is interacted
335 * <code>verifyNoMoreInteractions()</code> is a handy assertion from the interaction testing toolkit. Use it only when it's relevant.
422 * <code>thenThrow()</code> only. Those two should be <b>just enough</b> to test/test-drive
565 * It is the default answer so it will be used <b>only when you don't</b> stub the method call.
649 * The only reason we added <code>reset()</code> method is to
761 * Note that &#064;{@link InjectMocks} can only be used in combination with the &#064;{@link Spy} annotation, it means
765 * All new annotations are <b>*only*</b> processed on {@link MockitoAnnotations#initMocks(Object)}.
797 * //useful only if you have your own custom verification modes.
901 * and the methods are invoked on the spy. The spied instance is only used at mock creation to copy the state from.
1031 * Verification only works with the last mock in the chain. You can use verification modes.
1175 * Obviously return values are used only when you don't stub the method call.
1201 * It is the default answer so it will be used <b>only when you don't</b> stub the method call.
1512 * The only reason we added <code>reset()</code> method is to
1547 * <code>verifyNoMoreInteractions()</code> is a handy assertion from the interaction testing toolkit. Use it only when it's relevant.
1553 * Consider writing nice code that makes interactions only in test methods.
1586 * Consider writing nice code that makes interactions only in test methods.
1838 * but only those that you are interested in testing in order.
1840 * Also, you can create InOrder object passing only mocks that are relevant for in-order verification.
2018 * This verification mode can only be used with in order verification.
2027 * Allows checking if given method was the only one invoked. E.g:
2029 * verify(mock, only()).someMethod();
2042 public static VerificationMode only() {
2043 return VerificationModeFactory.only();
2067 * //useful only if you have your own custom verification modes.