org.jmock.core.matcher
Class InvokeAtMostOnceMatcher

java.lang.Object
  extended by org.jmock.core.matcher.InvokedRecorder
      extended by org.jmock.core.matcher.InvokeAtMostOnceMatcher
All Implemented Interfaces:
InvocationMatcher, SelfDescribing, Verifiable

public class InvokeAtMostOnceMatcher
extends InvokedRecorder

Since:
1.1.0

Constructor Summary
InvokeAtMostOnceMatcher()
           
 
Method Summary
 StringBuffer describeTo(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokeAtMostOnceMatcher

public InvokeAtMostOnceMatcher()
Method Detail

matches

public boolean matches(Invocation invocation)
Specified by:
matches in interface InvocationMatcher
Overrides:
matches in class InvokedRecorder

hasDescription

public boolean hasDescription()
Specified by:
hasDescription in interface InvocationMatcher
Overrides:
hasDescription in class InvokedRecorder

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Description copied from interface: SelfDescribing
Appends the description of this object to the buffer.

Specified by:
describeTo in interface SelfDescribing
Overrides:
describeTo in class InvokedRecorder
Parameters:
buffer - The buffer that the description is appended to.
Returns:
The buffer passed to the invokedMethod.