org.mockito.verification
public class Timeout extendsimplements 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() |
clone, 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)
public VerificationMode atMost(int maxNumberOfInvocations)
public VerificationMode never()
public VerificationMode description(String description)
VerificationModedescription in interface VerificationModedescription - The custom failure message