org.mockito.listeners.VerificationListener Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-core Show documentation
Show all versions of mockito-core Show documentation
Mockito mock objects library core API and implementation
/*
* Copyright (c) 2017 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.listeners;
import org.mockito.verification.VerificationEvent;
/**
* This listener can be notified of verify invocations on a mock.
*
* For this to happen, it must be registered using {@link org.mockito.internal.progress.MockingProgress#addListener(MockitoListener)}.
*/
public interface VerificationListener extends MockitoListener {
/**
* Called after a verification happened.
* This includes verifications that fail due to the verification mode failing.
*
* @param verificationEvent the event that occurred.
*/
void onVerification(VerificationEvent verificationEvent);
}