Package org.jmock.lib.concurrent
Class SynchronisingInvocationDispatcherWrapper
java.lang.Object
org.jmock.lib.concurrent.SynchronisingInvocationDispatcherWrapper
- All Implemented Interfaces:
org.hamcrest.SelfDescribing
,ExpectationCollector
,InvocationDispatcher
public class SynchronisingInvocationDispatcherWrapper
extends Object
implements InvocationDispatcher
I synchronise my delegate.
This serialises access to the internal Expectation and StateMachine collections.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Expectation expectation) void
describeMismatch
(Invocation invocation, org.hamcrest.Description description) void
describeTo
(org.hamcrest.Description description) dispatch
(Invocation invocation) boolean
newStateMachine
(String name)
-
Field Details
-
delegate
-
-
Constructor Details
-
SynchronisingInvocationDispatcherWrapper
-
-
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
-
isSatisfied
public boolean isSatisfied()- Specified by:
isSatisfied
in interfaceInvocationDispatcher
-
dispatch
- Specified by:
dispatch
in interfaceInvocationDispatcher
- Throws:
Throwable
-