org.jmock.core.stub

Class ReturnStub

Implemented Interfaces:
SelfDescribing, Stub

public class ReturnStub
extends Assert
implements Stub

Constructor Summary

ReturnStub(Object result)

Method Summary

StringBuffer
describeTo(StringBuffer buffer)
Object
invoke(Invocation invocation)

Constructor Details

ReturnStub

public ReturnStub(Object result)

Method Details

describeTo

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

invoke

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