test.jmock.core.testsupport
Class MockInvocationMatcher
java.lang.Object
test.jmock.core.testsupport.MockVerifiable
test.jmock.core.testsupport.MockInvocationMatcher
- All Implemented Interfaces:
- InvocationMatcher, SelfDescribing, Verifiable
- public class MockInvocationMatcher
- extends MockVerifiable
- implements InvocationMatcher
matchesInvocation
public ExpectationValue matchesInvocation
matchesResult
public boolean matchesResult
invokedInvocation
public ExpectationValue invokedInvocation
describeToBuffer
public ExpectationValue describeToBuffer
describeToOutput
public String describeToOutput
MockInvocationMatcher
public MockInvocationMatcher(String name)
MockInvocationMatcher
public MockInvocationMatcher()
toString
public String toString()
matches
public boolean matches(Invocation invocation)
- Specified by:
matches
in interface InvocationMatcher
invoked
public void invoked(Invocation invocation)
- Specified by:
invoked
in interface InvocationMatcher
hasDescription
public boolean hasDescription()
- Specified by:
hasDescription
in interface InvocationMatcher
describeTo
public StringBuffer describeTo(StringBuffer buffer)
- Description copied from interface:
SelfDescribing
- Appends the description of this object to the buffer.
- Specified by:
describeTo
in interface SelfDescribing
- Parameters:
buffer
- The buffer that the description is appended to.
- Returns:
- The buffer passed to the invokedMethod.