Class VerificationModeFactory
java.lang.Object
org.mockito.internal.verification.VerificationModeFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerificationMode
atLeast
(int minNumberOfInvocations) static VerificationMode
static VerificationMode
atMost
(int maxNumberOfInvocations) static VerificationMode
static Calls
calls
(int wantedNumberOfInvocations) static VerificationMode
description
(VerificationMode mode, String description) Verification mode will prepend the specified failure message if verification fails with the given implementation.static NoInteractions
static NoMoreInteractions
static VerificationMode
only()
static Times
times
(int wantedNumberOfInvocations)
-
Constructor Details
-
VerificationModeFactory
private VerificationModeFactory()
-
-
Method Details
-
atLeastOnce
-
atLeast
-
only
-
times
-
calls
-
noMoreInteractions
-
noInteractions
-
atMostOnce
-
atMost
-
description
Verification mode will prepend the specified failure message if verification fails with the given implementation.- Parameters:
mode
- Implementation used for verificationdescription
- The custom failure message- Returns:
- VerificationMode
- Since:
- 2.1.0
-