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:
getMockin interfaceVerificationEvent- Returns:
- The mock that a verification happened on.
-
getMode
- Specified by:
getModein interfaceVerificationEvent- Returns:
- the
VerificationModethat was used.
-
getData
- Specified by:
getDatain interfaceVerificationEvent- Returns:
- the
VerificationDatathat was verified on.
-
getVerificationError
Description copied from interface:VerificationEventA nullable Throwable if it is null, the verification succeeded, otherwise the throwable contains the cause of why the verification failed.- Specified by:
getVerificationErrorin interfaceVerificationEvent- Returns:
- null or the error.
-