public class InvocationDispatcher extends Object implements ExpectationCollector, org.hamcrest.SelfDescribing
Constructor and Description |
---|
InvocationDispatcher() |
Modifier and Type | Method and 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 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–2021 jMock. All rights reserved.