Class DoesNothing
java.lang.Object
org.mockito.internal.stubbing.answers.DoesNothing
- All Implemented Interfaces:
Serializable
,Answer<Object>
,ValidableAnswer
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswer
(InvocationOnMock invocation) static DoesNothing
void
validateFor
(InvocationOnMock invocation) Validation of the answer at stub time for the given invocation.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
SINGLETON
-
-
Constructor Details
-
DoesNothing
private DoesNothing()
-
-
Method Details
-
doesNothing
-
answer
-
validateFor
Description copied from interface:ValidableAnswer
Validation 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:
validateFor
in interfaceValidableAnswer
- Parameters:
invocation
- The stubbed invocation
-