Package org.jmock.core
Class AbstractInvocationDispatcher
java.lang.Object
org.jmock.core.AbstractInvocationDispatcher
- All Implemented Interfaces:
InvocationDispatcher
,SelfDescribing
,Verifiable
- Direct Known Subclasses:
FIFOInvocationDispatcher
,LIFOInvocationDispatcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
describeTo
(StringBuffer buffer) Appends the description of this object to the buffer.dispatch
(Invocation invocation) protected abstract Iterator
dispatchOrder
(List invokablesList) void
setDefaultStub
(Stub defaultStub) void
verify()
Throw an AssertionFailedException if any expectations have not been met.
-
Field Details
-
NO_EXPECTATIONS_MESSAGE
- See Also:
-
invokables
-
defaultStub
-
-
Constructor Details
-
AbstractInvocationDispatcher
public AbstractInvocationDispatcher()
-
-
Method Details
-
setDefaultStub
- Specified by:
setDefaultStub
in interfaceInvocationDispatcher
-
add
- Specified by:
add
in interfaceInvocationDispatcher
-
verify
public void verify()Description copied from interface:Verifiable
Throw an AssertionFailedException if any expectations have not been met. Implementations of this method must be idempotent: jMock can call this method more than once when verifying expectations at the end of a test.- Specified by:
verify
in interfaceVerifiable
-
clear
public void clear()- Specified by:
clear
in interfaceInvocationDispatcher
-
describeTo
Description copied from interface:SelfDescribing
Appends the description of this object to the buffer.- Specified by:
describeTo
in interfaceSelfDescribing
- Parameters:
buffer
- The buffer that the description is appended to.- Returns:
- The buffer passed to the invokedMethod.
-
dispatch
- Specified by:
dispatch
in interfaceInvocationDispatcher
- Throws:
Throwable
-
dispatchOrder
-