Class DoesNothing
java.lang.Object
org.mockito.internal.stubbing.answers.DoesNothing
- All Implemented Interfaces:
Serializable,Answer<Object>,ValidableAnswer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionanswer(InvocationOnMock invocation) static DoesNothingvoidvalidateFor(InvocationOnMock invocation) Validation of the answer at stub time for the given invocation.
-
Method Details
-
doesNothing
-
answer
-
validateFor
Description copied from interface:ValidableAnswerValidation of the answer at stub time for the given invocation.This method will be called by Mockito.
The implementation must throw an MockitoException to indicate that this answer is not valid for the given invocation. If the validation succeed the implementation must simply return without throwing.
- Specified by:
validateForin interfaceValidableAnswer- Parameters:
invocation- The stubbed invocation
-