• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.mockito.listeners;
2 
3 import org.mockito.Incubating;
4 import org.mockito.verification.VerificationEvent;
5 
6 /**
7  * This listener can be notified of verify invocations on a mock.
8  * <p>
9  * For this to happen, it must be registered using {@link org.mockito.internal.progress.MockingProgress#addListener(MockitoListener)}.
10  */
11 @Incubating
12 public interface VerificationListener extends MockitoListener {
13     /**
14      * Called after a verification happened.
15      * This includes verifications that fail due to the verification mode failing.
16      *
17      * @param verificationEvent the event that occurred.
18      */
onVerification(VerificationEvent verificationEvent)19     void onVerification(VerificationEvent verificationEvent);
20 }
21