Class Times
java.lang.Object
org.mockito.internal.verification.Times
- All Implemented Interfaces:
VerificationInOrderMode
,VerificationMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) Description will be prepended to the assertion error if verification fails.toString()
void
verify
(VerificationData data) Performs the verificationvoid
-
Constructor Details
-
Times
public Times(int wantedNumberOfInvocations)
-
-
Method Details
-
verify
Description copied from interface:VerificationMode
Performs the verification- Specified by:
verify
in interfaceVerificationMode
-
verifyInOrder
- Specified by:
verifyInOrder
in interfaceVerificationInOrderMode
-
toString
-
description
Description copied from interface:VerificationMode
Description will be prepended to the assertion error if verification fails.- Specified by:
description
in interfaceVerificationMode
- Parameters:
description
- The custom failure message- Returns:
- VerificationMode
-