org.jmock.core
Interface Stub
- SelfDescribing
- CustomStub, DefaultResultStub, ReturnStub, StubSequence, TestFailureStub, ThrowStub, VoidStub
An object that stubs the behaviour of a invokedMethod invocation on behalf of an
Invokable object.
invoke
public Object invoke(Invocation invocation)
throws Throwable Processes the invocation.
invocation - The invocation to stub.
- The result of the invocation, if not throwing an exception.
Must return
null if the invocation is of a invokedMethod with a void return type.