org.hamcrest.SelfDescribing, ExpectationCollectorpublic class InvocationDispatcher extends Object implements ExpectationCollector, org.hamcrest.SelfDescribing
| Constructor | Description |
|---|---|
InvocationDispatcher() |
|
InvocationDispatcher(Collection<Expectation> theExpectations,
Collection<StateMachine> theStateMachines) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(Expectation expectation) |
|
void |
describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
|
void |
describeTo(org.hamcrest.Description description) |
|
Object |
dispatch(Invocation invocation) |
|
boolean |
isSatisfied() |
|
StateMachine |
newStateMachine(String name) |
public InvocationDispatcher()
public InvocationDispatcher(Collection<Expectation> theExpectations, Collection<StateMachine> theStateMachines)
public StateMachine newStateMachine(String name)
public void add(Expectation expectation)
add in interface ExpectationCollectorpublic void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingpublic void describeMismatch(Invocation invocation, org.hamcrest.Description description)
public boolean isSatisfied()
public Object dispatch(Invocation invocation) throws Throwable
ThrowableCopyright © 2003–2018 jMock. All rights reserved.