org.jmock.core.stub

Class ThrowStub

Implemented Interfaces:
SelfDescribing, Stub

public class ThrowStub
extends Assert
implements Stub

Constructor Summary

ThrowStub(Throwable throwable)

Method Summary

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

Constructor Details

ThrowStub

public ThrowStub(Throwable throwable)

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