SelfDescribingCustomStub, DefaultResultStub, DoAllStub, ReturnIteratorStub, ReturnStub, StubSequence, TestFailureStub, ThrowStub, VoidStubpublic interface Stub extends SelfDescribing
Invokable object.| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
invoke(Invocation invocation) |
Processes the invocation.
|
describeTojava.lang.Object invoke(Invocation invocation) throws java.lang.Throwable
invocation - The invocation to stub.null if the invocation is of a invokedMethod with a void return type.java.lang.Throwable - An exception to be thrown to the caller, if not returning a value. A checked exception
thrown from this invokedMethod must be in the throws list of the invoked method.