Class VerificationEventImpl
java.lang.Object
org.mockito.internal.verification.VerificationEventImpl
- All Implemented Interfaces:
VerificationEvent
-
Constructor Summary
ConstructorsConstructorDescriptionVerificationEventImpl
(Object mock, VerificationMode mode, VerificationData data, Throwable cause) -
Method Summary
-
Constructor Details
-
VerificationEventImpl
public VerificationEventImpl(Object mock, VerificationMode mode, VerificationData data, Throwable cause)
-
-
Method Details
-
getMock
- Specified by:
getMock
in interfaceVerificationEvent
- Returns:
- The mock that a verification happened on.
-
getMode
- Specified by:
getMode
in interfaceVerificationEvent
- Returns:
- the
VerificationMode
that was used.
-
getData
- Specified by:
getData
in interfaceVerificationEvent
- Returns:
- the
VerificationData
that was verified on.
-
getVerificationError
Description copied from interface:VerificationEvent
A nullable Throwable if it is null, the verification succeeded, otherwise the throwable contains the cause of why the verification failed.- Specified by:
getVerificationError
in interfaceVerificationEvent
- Returns:
- null or the error.
-