org.jmock.core.matcher

Class TestFailureMatcher

Implemented Interfaces:
InvocationMatcher, SelfDescribing, Verifiable

public class TestFailureMatcher
extends Object
implements InvocationMatcher

Constructor Summary

TestFailureMatcher(String errorMessage)

Method Summary

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

Constructor Details

TestFailureMatcher

public TestFailureMatcher(String errorMessage)

Method Details

describeTo

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

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