test.jmock.core.testsupport
Class MockInvocationDispatcher
java.lang.Object
test.jmock.core.testsupport.MockVerifiable
test.jmock.core.testsupport.MockInvocationDispatcher
- All Implemented Interfaces:
- InvocationDispatcher, SelfDescribing, Verifiable
- public class MockInvocationDispatcher
- extends MockVerifiable
- implements InvocationDispatcher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dispatchInvocation
public ExpectationValue dispatchInvocation
dispatchResult
public Object dispatchResult
dispatchThrowable
public Throwable dispatchThrowable
addInvokable
public ExpectationValue addInvokable
clearCalls
public ExpectationCounter clearCalls
writeToOutput
public String writeToOutput
setDefaultStub
public ExpectationValue setDefaultStub
MockInvocationDispatcher
public MockInvocationDispatcher()
setDefaultStub
public void setDefaultStub(Stub newDefaultStub)
- Specified by:
setDefaultStub
in interface InvocationDispatcher
add
public void add(Invokable invokable)
- Specified by:
add
in interface InvocationDispatcher
clear
public void clear()
- Specified by:
clear
in interface InvocationDispatcher
dispatch
public Object dispatch(Invocation invocation)
throws Throwable
- Specified by:
dispatch
in interface InvocationDispatcher
- Throws:
Throwable
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.