Action
ActionSequence
, CustomAction
, DoAllAction
, FakeObjectMethods
, InvocationDiverter
, InvocationToExpectationTranslator
, ObjectMethodExpectationBouncer
, ProxiedObjectIdentity
, ReturnDefaultValueAction
, ReturnEnumerationAction
, ReturnIteratorAction
, ReturnValueAction
, ScriptedAction
, ThrowAction
, VoidAction
public interface Invokable
Invocation
.Modifier and Type | Method | Description |
---|---|---|
Object |
invoke(Invocation invocation) |
Performs an action in response to an invocation.
|
Object invoke(Invocation invocation) throws Throwable
invocation
- The invocation to perform.null
if the invoked method has a void return type.Throwable
- An exception to be thrown to the caller, if not returning a value. Any checked exception
thrown must be in the throws
list of the invoked method.Copyright © 2003–2018 jMock. All rights reserved.