public class InvocationDispatcher extends java.lang.Object implements ExpectationCollector, org.hamcrest.SelfDescribing
Modifier and Type | Field and Description |
---|---|
private java.util.List<Expectation> |
expectations |
private java.util.List<StateMachine> |
stateMachines |
Constructor and Description |
---|
InvocationDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
add(Expectation expectation) |
private void |
describe(org.hamcrest.Description description,
java.lang.Iterable<? extends org.hamcrest.SelfDescribing> selfDescribingExpectations) |
private java.lang.Iterable<org.hamcrest.SelfDescribing> |
describedWith(java.util.List<Expectation> expectations,
Invocation invocation) |
void |
describeMismatch(Invocation invocation,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
java.lang.Object |
dispatch(Invocation invocation) |
boolean |
isSatisfied() |
StateMachine |
newStateMachine(java.lang.String name) |
private java.util.List<Expectation> expectations
private java.util.List<StateMachine> stateMachines
public StateMachine newStateMachine(java.lang.String name)
public void add(Expectation expectation)
add
in interface ExpectationCollector
public void describeTo(org.hamcrest.Description description)
describeTo
in interface org.hamcrest.SelfDescribing
public void describeMismatch(Invocation invocation, org.hamcrest.Description description)
private java.lang.Iterable<org.hamcrest.SelfDescribing> describedWith(java.util.List<Expectation> expectations, Invocation invocation)
private void describe(org.hamcrest.Description description, java.lang.Iterable<? extends org.hamcrest.SelfDescribing> selfDescribingExpectations)
public boolean isSatisfied()
public java.lang.Object dispatch(Invocation invocation) throws java.lang.Throwable
java.lang.Throwable