public class Timeout extends org.mockito.internal.verification.VerificationWrapper<org.mockito.internal.verification.VerificationOverTimeImpl> implements VerificationWithTimeout
VerificationWithTimeout
Typically, you won't use this class explicitly. Instead use timeout() method on Mockito class.
See javadoc for VerificationWithTimeout
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 org.mockito.internal.verification.VerificationWrapper<org.mockito.internal.verification.VerificationOverTimeImpl>
public VerificationMode atMost(int maxNumberOfInvocations)
atMost
in class org.mockito.internal.verification.VerificationWrapper<org.mockito.internal.verification.VerificationOverTimeImpl>
public VerificationMode never()
never
in class org.mockito.internal.verification.VerificationWrapper<org.mockito.internal.verification.VerificationOverTimeImpl>
public VerificationMode description(String description)
VerificationMode
description
in interface VerificationMode
description
- The custom failure message