Package org.jmock.core.matcher
Class TestFailureMatcher
java.lang.Object
org.jmock.core.matcher.TestFailureMatcher
- All Implemented Interfaces:
InvocationMatcher,SelfDescribing,Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribeTo(StringBuffer buffer) Appends the description of this object to the buffer.booleanvoidinvoked(Invocation invocation) booleanmatches(Invocation invocation) voidverify()Throw an AssertionFailedException if any expectations have not been met.
-
Constructor Details
-
TestFailureMatcher
-
-
Method Details
-
matches
- Specified by:
matchesin interfaceInvocationMatcher
-
hasDescription
public boolean hasDescription()- Specified by:
hasDescriptionin interfaceInvocationMatcher
-
describeTo
Description copied from interface:SelfDescribingAppends the description of this object to the buffer.- Specified by:
describeToin interfaceSelfDescribing- Parameters:
buffer- The buffer that the description is appended to.- Returns:
- The buffer passed to the invokedMethod.
-
invoked
- Specified by:
invokedin interfaceInvocationMatcher
-
verify
public void verify()Description copied from interface:VerifiableThrow an AssertionFailedException if any expectations have not been met. Implementations of this method must be idempotent: jMock can call this method more than once when verifying expectations at the end of a test.- Specified by:
verifyin interfaceVerifiable
-