org.jmock.core.stub

Class DefaultResultStub

Implemented Interfaces:
SelfDescribing, Stub

public class DefaultResultStub
extends Object
implements Stub

Constructor Summary

DefaultResultStub()

Method Summary

void
addResult(Class resultType, Object resultValue)
protected void
createDefaultResults()
String
createErrorMessage(Invocation call)
StringBuffer
describeTo(StringBuffer buf)
Object
invoke(Invocation invocation)

Constructor Details

DefaultResultStub

public DefaultResultStub()

Method Details

addResult

public void addResult(Class resultType,
                      Object resultValue)

createDefaultResults

protected void createDefaultResults()

createErrorMessage

public String createErrorMessage(Invocation call)

describeTo

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

invoke

public Object invoke(Invocation invocation)
            throws Throwable
Specified by:
invoke in interface Stub