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 InvocationMatcherpublic boolean hasDescription()
hasDescription in interface InvocationMatcherpublic java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
SelfDescribingdescribeTo in interface SelfDescribingbuffer - The buffer that the description is appended to.public void invoked(Invocation invocation)
invoked in interface InvocationMatcherpublic void verify()
Verifiableverify in interface Verifiable