public abstract class AbstractInvocationDispatcher extends java.lang.Object implements InvocationDispatcher
| Modifier and Type | Field and Description |
|---|---|
protected Stub |
defaultStub |
protected java.util.List |
invokables |
static java.lang.String |
NO_EXPECTATIONS_MESSAGE |
| Constructor and Description |
|---|
AbstractInvocationDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Invokable invokable) |
void |
clear() |
java.lang.StringBuffer |
describeTo(java.lang.StringBuffer buffer)
Appends the description of this object to the buffer.
|
java.lang.Object |
dispatch(Invocation invocation) |
protected abstract java.util.Iterator |
dispatchOrder(java.util.List invokablesList) |
void |
setDefaultStub(Stub defaultStub) |
void |
verify()
Throw an AssertionFailedException if any expectations have not been met.
|
public static final java.lang.String NO_EXPECTATIONS_MESSAGE
protected java.util.List invokables
protected Stub defaultStub
public void setDefaultStub(Stub defaultStub)
setDefaultStub in interface InvocationDispatcherpublic void add(Invokable invokable)
add in interface InvocationDispatcherpublic void verify()
Verifiableverify in interface Verifiablepublic void clear()
clear in interface InvocationDispatcherpublic java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
SelfDescribingdescribeTo in interface SelfDescribingbuffer - The buffer that the description is appended to.public java.lang.Object dispatch(Invocation invocation) throws java.lang.Throwable
dispatch in interface InvocationDispatcherjava.lang.Throwableprotected abstract java.util.Iterator dispatchOrder(java.util.List invokablesList)