Package org.jmock.internal
Class InvocationDispatcher
- java.lang.Object
-
- org.jmock.internal.InvocationDispatcher
-
- All Implemented Interfaces:
org.hamcrest.SelfDescribing,ExpectationCollector
public class InvocationDispatcher extends Object implements ExpectationCollector, org.hamcrest.SelfDescribing
-
-
Constructor Summary
Constructors Constructor Description InvocationDispatcher()InvocationDispatcher(Collection<Expectation> theExpectations, Collection<StateMachine> theStateMachines)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Expectation expectation)voiddescribeMismatch(Invocation invocation, org.hamcrest.Description description)voiddescribeTo(org.hamcrest.Description description)Objectdispatch(Invocation invocation)booleanisSatisfied()StateMachinenewStateMachine(String name)
-
-
-
Constructor Detail
-
InvocationDispatcher
public InvocationDispatcher()
-
InvocationDispatcher
public InvocationDispatcher(Collection<Expectation> theExpectations, Collection<StateMachine> theStateMachines)
-
-
Method Detail
-
newStateMachine
public StateMachine newStateMachine(String name)
-
add
public void add(Expectation expectation)
- Specified by:
addin interfaceExpectationCollector
-
describeTo
public void describeTo(org.hamcrest.Description description)
- Specified by:
describeToin interfaceorg.hamcrest.SelfDescribing
-
describeMismatch
public void describeMismatch(Invocation invocation, org.hamcrest.Description description)
-
isSatisfied
public boolean isSatisfied()
-
dispatch
public Object dispatch(Invocation invocation) throws Throwable
- Throws:
Throwable
-
-