Logo Search packages:      
Sourcecode: jmock2 version File versions  Download package

Object org::jmock::api::Invokable::invoke ( Invocation  invocation  )  throws Throwable [package, inherited]

Performs an action in response to an invocation.

Parameters:
invocation The invocation to perform.
Returns:
The result of the invocation, if not throwing an exception. Must return null if the invoked method has a void return type.
Exceptions:
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.

Implemented in org::jmock::internal::ReturnDefaultValueAction, org::jmock::lib::action::ActionSequence, org::jmock::lib::action::DoAllAction, org::jmock::lib::action::ReturnEnumerationAction, org::jmock::lib::action::ReturnIteratorAction, org::jmock::lib::action::ReturnValueAction, org::jmock::lib::action::ThrowAction, org::jmock::lib::action::VoidAction, and org::jmock::lib::script::ScriptedAction.

Referenced by org::jmock::lib::action::DoAllAction::invoke(), and org::jmock::internal::InvocationExpectation::invoke().


Generated by  Doxygen 1.6.0   Back to index