Package org.jmock.api
Interface InvocationDispatcher
-
- All Superinterfaces:
ExpectationCollector
,org.hamcrest.SelfDescribing
- All Known Implementing Classes:
SynchronisingInvocationDispatcherWrapper
,UnsynchronisedInvocationDispatcher
public interface InvocationDispatcher extends org.hamcrest.SelfDescribing, ExpectationCollector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(Expectation expectation)
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)
-
-
-
Method Detail
-
newStateMachine
StateMachine newStateMachine(java.lang.String name)
-
add
void add(Expectation expectation)
- Specified by:
add
in interfaceExpectationCollector
-
describeTo
void describeTo(org.hamcrest.Description description)
- Specified by:
describeTo
in interfaceorg.hamcrest.SelfDescribing
-
describeMismatch
void describeMismatch(Invocation invocation, org.hamcrest.Description description)
-
isSatisfied
boolean isSatisfied()
-
dispatch
java.lang.Object dispatch(Invocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-