1 package org.mockito.verification; 2 3 import org.mockito.Incubating; 4 import org.mockito.internal.verification.api.VerificationData; 5 6 /** 7 * Contains all information about a verification that has happened. 8 */ 9 @Incubating 10 public interface VerificationEvent { 11 /** 12 * @return The mock that a verification happened on. 13 */ getMock()14 Object getMock(); 15 16 /** 17 * @return the {@link VerificationMode} that was used. 18 */ getMode()19 VerificationMode getMode(); 20 21 /** 22 * @return the {@link VerificationData} that was verified on. 23 */ getData()24 VerificationData getData(); 25 26 /** 27 * A nullable Throwable if it is null, the verification succeeded, 28 * otherwise the throwable contains the cause of why the verification failed. 29 * 30 * @return null or the error. 31 */ getVerificationError()32 Throwable getVerificationError(); 33 } 34