Package org.jmock.internal
Class InvocationDispatcher
- java.lang.Object
-
- org.jmock.internal.InvocationDispatcher
-
- All Implemented Interfaces:
org.hamcrest.SelfDescribing
,ExpectationCollector
public class InvocationDispatcher extends java.lang.Object implements ExpectationCollector, org.hamcrest.SelfDescribing
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Expectation>
expectations
private java.util.List<StateMachine>
stateMachines
-
Constructor Summary
Constructors Constructor Description InvocationDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
expectations
private java.util.List<Expectation> expectations
-
stateMachines
private java.util.List<StateMachine> stateMachines
-
-
Method Detail
-
newStateMachine
public StateMachine newStateMachine(java.lang.String name)
-
add
public void add(Expectation expectation)
- Specified by:
add
in interfaceExpectationCollector
-
describeTo
public void describeTo(org.hamcrest.Description description)
- Specified by:
describeTo
in interfaceorg.hamcrest.SelfDescribing
-
describeMismatch
public void describeMismatch(Invocation invocation, org.hamcrest.Description description)
-
describedWith
private java.lang.Iterable<org.hamcrest.SelfDescribing> describedWith(java.util.List<Expectation> expectations, Invocation invocation)
-
describe
private void describe(org.hamcrest.Description description, java.lang.Iterable<? extends org.hamcrest.SelfDescribing> selfDescribingExpectations)
-
isSatisfied
public boolean isSatisfied()
-
dispatch
public java.lang.Object dispatch(Invocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-