Package org.jmock.core.matcher
Class InvokeAtMostOnceMatcher
java.lang.Object
org.jmock.core.matcher.InvokedRecorder
org.jmock.core.matcher.InvokeAtMostOnceMatcher
- All Implemented Interfaces:
InvocationMatcher,SelfDescribing,Verifiable
- Since:
- 1.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribeTo(StringBuffer buffer) Appends the description of this object to the buffer.booleanbooleanmatches(Invocation invocation) Methods inherited from class org.jmock.core.matcher.InvokedRecorder
getInvocationCount, hasBeenInvoked, invoked, verify, verifyHasBeenInvoked, verifyHasBeenInvokedExactly
-
Constructor Details
-
InvokeAtMostOnceMatcher
public InvokeAtMostOnceMatcher()
-
-
Method Details
-
matches
- Specified by:
matchesin interfaceInvocationMatcher- Overrides:
matchesin classInvokedRecorder
-
hasDescription
public boolean hasDescription()- Specified by:
hasDescriptionin interfaceInvocationMatcher- Overrides:
hasDescriptionin classInvokedRecorder
-
describeTo
Description copied from interface:SelfDescribingAppends the description of this object to the buffer.- Specified by:
describeToin interfaceSelfDescribing- Overrides:
describeToin classInvokedRecorder- Parameters:
buffer- The buffer that the description is appended to.- Returns:
- The buffer passed to the invokedMethod.
-