Package org.mockito.verification
Interface VerificationEvent
-
- All Known Implementing Classes:
VerificationEventImpl
@Incubating public interface VerificationEvent
Contains all information about a verification that has happened.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VerificationDatagetData()java.lang.ObjectgetMock()VerificationModegetMode()java.lang.ThrowablegetVerificationError()A nullable Throwable if it is null, the verification succeeded, otherwise the throwable contains the cause of why the verification failed.
-
-
-
Method Detail
-
getMock
java.lang.Object getMock()
- Returns:
- The mock that a verification happened on.
-
getMode
VerificationMode getMode()
- Returns:
- the
VerificationModethat was used.
-
getData
VerificationData getData()
- Returns:
- the
VerificationDatathat was verified on.
-
getVerificationError
java.lang.Throwable getVerificationError()
A nullable Throwable if it is null, the verification succeeded, otherwise the throwable contains the cause of why the verification failed.- Returns:
- null or the error.
-
-