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 voidadd(Expectation expectation)voiddescribeMismatch(Invocation invocation, org.hamcrest.Description description)voiddescribeTo(org.hamcrest.Description description)java.lang.Objectdispatch(Invocation invocation)booleanisSatisfied()StateMachinenewStateMachine(java.lang.String name)
-
-
-
Method Detail
-
newStateMachine
StateMachine newStateMachine(java.lang.String name)
-
add
void add(Expectation expectation)
- Specified by:
addin interfaceExpectationCollector
-
describeTo
void describeTo(org.hamcrest.Description description)
- Specified by:
describeToin 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
-
-