Class Timeout
java.lang.Object
org.mockito.verification.Timeout
- All Implemented Interfaces:
VerificationMode, VerificationWithTimeout
See the javadoc for
VerificationWithTimeout
Typically, you won't use this class explicitly. Instead use timeout() method on Mockito class.
See javadoc for VerificationWithTimeout
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.mockito.internal.verification.VerificationOverTimeImpl -
Constructor Summary
ConstructorsConstructorDescriptionTimeout(long millis, VerificationMode delegate) See the javadoc forVerificationWithTimeout -
Method Summary
Modifier and TypeMethodDescriptionatLeast(int minNumberOfInvocations) atMost(int maxNumberOfInvocations) protected VerificationModecopySelfWithNewVerificationMode(VerificationMode newVerificationMode) never()only()times(int wantedNumberOfInvocations) toString()voidverify(org.mockito.internal.verification.api.VerificationData data) Performs the verificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface VerificationMode
description, verifyMethods inherited from interface VerificationWithTimeout
atLeast, atLeastOnce, only, times
-
Field Details
-
wrappedVerification
protected final org.mockito.internal.verification.VerificationOverTimeImpl wrappedVerification
-
-
Constructor Details
-
Timeout
See the javadoc forVerificationWithTimeoutTypically, you won't use this class explicitly. Instead use timeout() method on Mockito class. See javadoc for
VerificationWithTimeout
-
-
Method Details
-
copySelfWithNewVerificationMode
-
atMost
-
never
-
toString
-
verify
public void verify(org.mockito.internal.verification.api.VerificationData data) Description copied from interface:VerificationModePerforms the verification- Specified by:
verifyin interfaceVerificationMode
-
times
-
atLeastOnce
-
atLeast
-
atMostOnce
-
only
-