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 TypeMethodDescriptionvoidadd(Expectation expectation) voiddescribeMismatch(Invocation invocation, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) dispatch(Invocation invocation) booleannewStateMachine(String name)
-
Field Details
-
delegate
-
-
Constructor Details
-
SynchronisingInvocationDispatcherWrapper
-
-
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
-
isSatisfied
public boolean isSatisfied()- Specified by:
isSatisfiedin interfaceInvocationDispatcher
-
dispatch
- Specified by:
dispatchin interfaceInvocationDispatcher- Throws:
Throwable
-