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 |
never() |
atLeast, atLeastOnce, atMostOnce, only, times, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
atLeast, atLeastOnce, only, times
description, 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>