Class AtMost
- java.lang.Object
-
- org.mockito.internal.verification.AtMost
-
- All Implemented Interfaces:
VerificationMode
public class AtMost extends java.lang.Object implements VerificationMode
-
-
Field Summary
Fields Modifier and Type Field Description private intmaxNumberOfInvocations
-
Constructor Summary
Constructors Constructor Description AtMost(int maxNumberOfInvocations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerificationModedescription(java.lang.String description)Description will be prepended to the assertion error if verification fails.private voidremoveAlreadyVerified(java.util.List<Invocation> invocations)voidverify(VerificationData data)Performs the verification
-
-
-
Method Detail
-
verify
public void verify(VerificationData data)
Description copied from interface:VerificationModePerforms the verification- Specified by:
verifyin interfaceVerificationMode
-
description
public VerificationMode description(java.lang.String description)
Description copied from interface:VerificationModeDescription will be prepended to the assertion error if verification fails.- Specified by:
descriptionin interfaceVerificationMode- Parameters:
description- The custom failure message- Returns:
- VerificationMode
-
removeAlreadyVerified
private void removeAlreadyVerified(java.util.List<Invocation> invocations)
-
-