Package org.jmock.lib.concurrent
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 TypeMethodDescriptionvoid
add
(Expectation expectation) private void
describe
(org.hamcrest.Description description, Iterable<? extends org.hamcrest.SelfDescribing> selfDescribingExpectations) private Iterable<org.hamcrest.SelfDescribing>
describedWith
(Iterable<Expectation> expectations, Invocation invocation) void
describeMismatch
(Invocation invocation, org.hamcrest.Description description) void
describeTo
(org.hamcrest.Description description) dispatch
(Invocation invocation) boolean
newStateMachine
(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:
newStateMachine
in interfaceInvocationDispatcher
-
add
- Specified by:
add
in interfaceExpectationCollector
- Specified by:
add
in interfaceInvocationDispatcher
-
describeTo
public void describeTo(org.hamcrest.Description description) - Specified by:
describeTo
in interfaceInvocationDispatcher
- Specified by:
describeTo
in interfaceorg.hamcrest.SelfDescribing
-
describeMismatch
- Specified by:
describeMismatch
in 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:
isSatisfied
in interfaceInvocationDispatcher
-
dispatch
- Specified by:
dispatch
in interfaceInvocationDispatcher
- Throws:
Throwable
-