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 int
maxNumberOfInvocations
-
Constructor Summary
Constructors Constructor Description AtMost(int maxNumberOfInvocations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerificationMode
description(java.lang.String description)
Description will be prepended to the assertion error if verification fails.private void
removeAlreadyVerified(java.util.List<Invocation> invocations)
void
verify(VerificationData data)
Performs the verification
-
-
-
Method Detail
-
verify
public void verify(VerificationData data)
Description copied from interface:VerificationMode
Performs the verification- Specified by:
verify
in interfaceVerificationMode
-
description
public VerificationMode description(java.lang.String 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
-
removeAlreadyVerified
private void removeAlreadyVerified(java.util.List<Invocation> invocations)
-
-