org.mockito.verification
public class Timeout extends VerificationWrapper<VerificationOverTimeImpl> implements VerificationWithTimeout
VerificationWithTimeout
Typically, you won't use this class explicitly. Instead use timeout() method on Mockito class.
See javadoc for VerificationWithTimeout
wrappedVerification
Constructor and Description |
---|
Timeout(long millis,
VerificationMode delegate)
See the javadoc for
VerificationWithTimeout |
Modifier and Type | Method and Description |
---|---|
VerificationMode |
atMost(int maxNumberOfInvocations) |
protected VerificationMode |
copySelfWithNewVerificationMode(VerificationMode newVerificationMode) |
VerificationMode |
description(String description)
Description will be prepended to the assertion error if verification fails.
|
VerificationMode |
never() |
atLeast, atLeastOnce, only, times, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
atLeast, atLeastOnce, only, times
verify
public Timeout(long millis, VerificationMode delegate)
VerificationWithTimeout
Typically, you won't use this class explicitly. Instead use timeout() method on Mockito class.
See javadoc for VerificationWithTimeout
protected VerificationMode copySelfWithNewVerificationMode(VerificationMode newVerificationMode)
copySelfWithNewVerificationMode
in class VerificationWrapper<VerificationOverTimeImpl>
public VerificationMode atMost(int maxNumberOfInvocations)
atMost
in class VerificationWrapper<VerificationOverTimeImpl>
public VerificationMode never()
never
in class VerificationWrapper<VerificationOverTimeImpl>
public VerificationMode description(String description)
VerificationMode
description
in interface VerificationMode
description
- The custom failure message