org.mockito.internal.progress.MockingProgress 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) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.progress;
import java.util.Set;
import org.mockito.listeners.MockitoListener;
import org.mockito.listeners.VerificationListener;
import org.mockito.mock.MockCreationSettings;
import org.mockito.stubbing.OngoingStubbing;
import org.mockito.verification.VerificationMode;
import org.mockito.verification.VerificationStrategy;
public interface MockingProgress {
void reportOngoingStubbing(OngoingStubbing ongoingStubbing);
OngoingStubbing pullOngoingStubbing();
Set verificationListeners();
void verificationStarted(VerificationMode verificationMode);
VerificationMode pullVerificationMode();
void stubbingStarted();
void stubbingCompleted();
void validateState();
void reset();
/**
* Removes ongoing stubbing so that in case the framework is misused
* state validation errors are more accurate
*/
void resetOngoingStubbing();
ArgumentMatcherStorage getArgumentMatcherStorage();
void mockingStarted(Object mock, MockCreationSettings settings);
void mockingStarted(Class mock, MockCreationSettings settings);
void addListener(MockitoListener listener);
void removeListener(MockitoListener listener);
void setVerificationStrategy(VerificationStrategy strategy);
VerificationMode maybeVerifyLazily(VerificationMode mode);
/**
* Removes all listeners added via {@link #addListener(MockitoListener)}.
*/
void clearListeners();
}