org.hamcrest.SelfDescribing
, ExpectationCollector
public 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 ExpectationCollector
public void describeTo(org.hamcrest.Description description)
describeTo
in interface org.hamcrest.SelfDescribing
public void describeMismatch(Invocation invocation, org.hamcrest.Description description)
public boolean isSatisfied()
public Object dispatch(Invocation invocation) throws Throwable
Throwable
Copyright © 2003–2018 jMock. All rights reserved.