org.mockito.internal.progress
public class MockingProgressImpl extends Object implements MockingProgress
Constructor and Description |
---|
MockingProgressImpl() |
Modifier and Type | Method and Description |
---|---|
ArgumentMatcherStorage |
getArgumentMatcherStorage() |
static VerificationStrategy |
getDefaultVerificationStrategy() |
VerificationMode |
maybeVerifyLazily(VerificationMode mode) |
void |
mockingStarted(Object mock,
Class<?> classToMock) |
OngoingStubbing<?> |
pullOngoingStubbing() |
VerificationMode |
pullVerificationMode() |
void |
reportOngoingStubbing(OngoingStubbing iOngoingStubbing) |
void |
reset() |
void |
resetOngoingStubbing()
Removes ongoing stubbing so that in case the framework is misused
state validation errors are more accurate
|
void |
setListener(MockingProgressListener listener) |
void |
setVerificationStrategy(VerificationStrategy strategy) |
void |
stubbingCompleted(Invocation invocation) |
void |
stubbingStarted() |
String |
toString() |
void |
validateState() |
void |
verificationStarted(VerificationMode verify) |
public static VerificationStrategy getDefaultVerificationStrategy()
public void reportOngoingStubbing(OngoingStubbing iOngoingStubbing)
reportOngoingStubbing
in interface MockingProgress
public OngoingStubbing<?> pullOngoingStubbing()
pullOngoingStubbing
in interface MockingProgress
public void verificationStarted(VerificationMode verify)
verificationStarted
in interface MockingProgress
public void resetOngoingStubbing()
MockingProgress
resetOngoingStubbing
in interface MockingProgress
public VerificationMode pullVerificationMode()
pullVerificationMode
in interface MockingProgress
public void stubbingStarted()
stubbingStarted
in interface MockingProgress
public void validateState()
validateState
in interface MockingProgress
public void stubbingCompleted(Invocation invocation)
stubbingCompleted
in interface MockingProgress
public void reset()
reset
in interface MockingProgress
public ArgumentMatcherStorage getArgumentMatcherStorage()
getArgumentMatcherStorage
in interface MockingProgress
public void mockingStarted(Object mock, Class<?> classToMock)
mockingStarted
in interface MockingProgress
public void setListener(MockingProgressListener listener)
setListener
in interface MockingProgress
public void setVerificationStrategy(VerificationStrategy strategy)
setVerificationStrategy
in interface MockingProgress
public VerificationMode maybeVerifyLazily(VerificationMode mode)
maybeVerifyLazily
in interface MockingProgress