org.jmock.core.matcher
public class TestFailureMatcher extends java.lang.Object implements InvocationMatcher
Constructor and Description |
---|
TestFailureMatcher(java.lang.String errorMessage) |
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
describeTo(java.lang.StringBuffer buffer)
Appends the description of this object to the buffer.
|
boolean |
hasDescription() |
void |
invoked(Invocation invocation) |
boolean |
matches(Invocation invocation) |
void |
verify()
Throw an AssertionFailedException if any expectations have not been met.
|
public boolean matches(Invocation invocation)
matches
in interface InvocationMatcher
public boolean hasDescription()
hasDescription
in interface InvocationMatcher
public java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
SelfDescribing
describeTo
in interface SelfDescribing
buffer
- The buffer that the description is appended to.public void invoked(Invocation invocation)
invoked
in interface InvocationMatcher
public void verify()
Verifiable
verify
in interface Verifiable