test.jmock.core.testsupport
Class MockInvokable
java.lang.Object
test.jmock.core.testsupport.MockVerifiable
test.jmock.core.testsupport.MockInvokable
- All Implemented Interfaces:
- Invokable, SelfDescribing, Verifiable
- public class MockInvokable
- extends MockVerifiable
- implements Invokable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
matchesResult
public boolean matchesResult
matchesInvocation
public ExpectationValue matchesInvocation
invokeResult
public Object invokeResult
invokeInvocation
public ExpectationValue invokeInvocation
invokeThrow
public Throwable invokeThrow
MockInvokable
public MockInvokable()
matches
public boolean matches(Invocation invocation)
- Specified by:
matches
in interface Invokable
invoke
public Object invoke(Invocation invocation)
throws Throwable
- Specified by:
invoke
in interface Invokable
- Throws:
Throwable
hasDescription
public boolean hasDescription()
- Specified by:
hasDescription
in interface Invokable
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.