org.jmock.core

Class LIFOInvocationDispatcher

Implemented Interfaces:
InvocationDispatcher, SelfDescribing, Verifiable

public class LIFOInvocationDispatcher
extends Object
implements InvocationDispatcher

Field Summary

static String
NO_EXPECTATIONS_MESSAGE

Method Summary

void
add(Invokable invokable)
void
clear()
StringBuffer
describeTo(StringBuffer buffer)
Object
dispatch(Invocation invocation)
void
setDefaultStub(Stub defaultStub)
void
verify()

Field Details

NO_EXPECTATIONS_MESSAGE

public static final String NO_EXPECTATIONS_MESSAGE

Method Details

add

public void add(Invokable invokable)
Specified by:
add in interface InvocationDispatcher

clear

public void clear()
Specified by:
clear in interface InvocationDispatcher

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Specified by:
describeTo in interface SelfDescribing

dispatch

public Object dispatch(Invocation invocation)
            throws Throwable
Specified by:
dispatch in interface InvocationDispatcher

setDefaultStub

public void setDefaultStub(Stub defaultStub)
Specified by:
setDefaultStub in interface InvocationDispatcher

verify

public void verify()
Specified by:
verify in interface Verifiable