org.jmock.core.matcher

Class InvokedRecorder

Implemented Interfaces:
InvocationMatcher, SelfDescribing, Verifiable
Known Direct Subclasses:
InvokeAtLeastOnceMatcher, InvokeOnceMatcher

public class InvokedRecorder
extends Object
implements InvocationMatcher

Method Summary

StringBuffer
describeTo(StringBuffer buffer)
boolean
hasBeenInvoked()
boolean
hasDescription()
void
invoked(Invocation invocation)
boolean
matches(Invocation invocation)
void
verify()
void
verifyHasBeenInvoked()

Method Details

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Specified by:
describeTo in interface SelfDescribing

hasBeenInvoked

public boolean hasBeenInvoked()

hasDescription

public boolean hasDescription()
Specified by:
hasDescription in interface InvocationMatcher

invoked

public void invoked(Invocation invocation)
Specified by:
invoked in interface InvocationMatcher

matches

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

verify

public void verify()
Specified by:
verify in interface Verifiable

verifyHasBeenInvoked

public void verifyHasBeenInvoked()