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.boolean
boolean
matches
(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:
matches
in interfaceInvocationMatcher
- Overrides:
matches
in classInvokedRecorder
-
hasDescription
public boolean hasDescription()- Specified by:
hasDescription
in interfaceInvocationMatcher
- Overrides:
hasDescription
in classInvokedRecorder
-
describeTo
Description copied from interface:SelfDescribing
Appends the description of this object to the buffer.- Specified by:
describeTo
in interfaceSelfDescribing
- Overrides:
describeTo
in classInvokedRecorder
- Parameters:
buffer
- The buffer that the description is appended to.- Returns:
- The buffer passed to the invokedMethod.
-