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
public class InvokeAtMostOnceMatcher extends InvokedRecorder
- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description InvokeAtMostOnceMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuffer
describeTo(java.lang.StringBuffer buffer)
Appends the description of this object to the buffer.boolean
hasDescription()
boolean
matches(Invocation invocation)
-
Methods inherited from class org.jmock.core.matcher.InvokedRecorder
getInvocationCount, hasBeenInvoked, invoked, verify, verifyHasBeenInvoked, verifyHasBeenInvokedExactly
-
-
-
-
Method Detail
-
matches
public boolean matches(Invocation invocation)
- Specified by:
matches
in interfaceInvocationMatcher
- Overrides:
matches
in classInvokedRecorder
-
hasDescription
public boolean hasDescription()
- Specified by:
hasDescription
in interfaceInvocationMatcher
- Overrides:
hasDescription
in classInvokedRecorder
-
describeTo
public java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
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.
-
-