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, atMostOnce, only, times, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitatLeast, atLeastOnce, only, timesverifypublic 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)
VerificationModedescription in interface VerificationModedescription - The custom failure message