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 TypeMethodDescriptionvoidvoidclear()describeTo(StringBuffer buffer) Appends the description of this object to the buffer.dispatch(Invocation invocation) protected abstract IteratordispatchOrder(List invokablesList) voidsetDefaultStub(Stub defaultStub) voidverify()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:
setDefaultStubin interfaceInvocationDispatcher
-
add
- Specified by:
addin interfaceInvocationDispatcher
-
verify
public void verify()Description copied from interface:VerifiableThrow 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:
verifyin interfaceVerifiable
-
clear
public void clear()- Specified by:
clearin interfaceInvocationDispatcher
-
describeTo
Description copied from interface:SelfDescribingAppends the description of this object to the buffer.- Specified by:
describeToin interfaceSelfDescribing- Parameters:
buffer- The buffer that the description is appended to.- Returns:
- The buffer passed to the invokedMethod.
-
dispatch
- Specified by:
dispatchin interfaceInvocationDispatcher- Throws:
Throwable
-
dispatchOrder
-