Class UnsynchronisedInvocationDispatcher
java.lang.Object
org.jmock.lib.concurrent.UnsynchronisedInvocationDispatcher
- All Implemented Interfaces:
org.hamcrest.SelfDescribing, ExpectationCollector, InvocationDispatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<Expectation> private final Collection<StateMachine> -
Constructor Summary
ConstructorsConstructorDescriptionUnsynchronisedInvocationDispatcher(Collection<Expectation> theExpectations, Collection<StateMachine> theStateMachines) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Expectation expectation) private voiddescribe(org.hamcrest.Description description, Iterable<? extends org.hamcrest.SelfDescribing> selfDescribingExpectations) private Iterable<org.hamcrest.SelfDescribing> describedWith(Iterable<Expectation> expectations, Invocation invocation) voiddescribeMismatch(Invocation invocation, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) dispatch(Invocation invocation) booleannewStateMachine(String name)
-
Field Details
-
expectations
-
stateMachines
-
-
Constructor Details
-
UnsynchronisedInvocationDispatcher
public UnsynchronisedInvocationDispatcher() -
UnsynchronisedInvocationDispatcher
public UnsynchronisedInvocationDispatcher(Collection<Expectation> theExpectations, Collection<StateMachine> theStateMachines)
-
-
Method Details
-
newStateMachine
- Specified by:
newStateMachinein interfaceInvocationDispatcher
-
add
- Specified by:
addin interfaceExpectationCollector- Specified by:
addin interfaceInvocationDispatcher
-
describeTo
public void describeTo(org.hamcrest.Description description) - Specified by:
describeToin interfaceInvocationDispatcher- Specified by:
describeToin interfaceorg.hamcrest.SelfDescribing
-
describeMismatch
- Specified by:
describeMismatchin interfaceInvocationDispatcher
-
describedWith
private Iterable<org.hamcrest.SelfDescribing> describedWith(Iterable<Expectation> expectations, Invocation invocation) -
describe
private void describe(org.hamcrest.Description description, Iterable<? extends org.hamcrest.SelfDescribing> selfDescribingExpectations) -
isSatisfied
public boolean isSatisfied()- Specified by:
isSatisfiedin interfaceInvocationDispatcher
-
dispatch
- Specified by:
dispatchin interfaceInvocationDispatcher- Throws:
Throwable
-