Skip to main content
[ This file is autogenerated from apexdoc ]

AqMethodReturnValue

ISTEST

Group modules/enterprise

Fields​

public answer → AqIAnswer​


Methods​

public AqMethodReturnValue thenReturn(Object value)​

Setup a stubbed return value.

Parameters​

ParamDescription
valueThe value to return from the stubbed method call.

Returns​

TypeDescription
AqMethodReturnValueThe AqMethodReturnValue instance to allow you to chain the methods.

public AqMethodReturnValue thenThrow(Exception e)​

Setup a stubbed exception.

Parameters​

ParamDescription
eThe exception to throw from the stubbed method call.

Returns​

TypeDescription
AqMethodReturnValueThe AqMethodReturnValue instance to allow you to chain the methods.

public void thenAnswer(AqIAnswer answer)​

Setup a stubbed answer.

Parameters​

ParamDescription
answerThe answer to run from the stubbed method call.

Classes​

StandardAnswer​

Implemented types

AqIAnswer

Fields​

public returnValue → Object​

Methods​

public Object answer(AqMethodInvocation methodInvocation)​

Standard basic implementation for the

Parameters​
ParamDescription
methodInvocationThe invocation to answer for.
Returns​
TypeDescription
ObjectThe returnValue for the method stubbed.

See [AqIAnswer answer method, to be used as default answering.](AqIAnswer answer method, to be used as default answering.)

public StandardAnswer setValue(Object value)​

Setter of a single return value.

Parameters​
ParamDescription
valueThe value to be set as return value for the StandardAnswer object.
Returns​
TypeDescription
StandardAnswerThe StandardAnswer instance.