[ This file is autogenerated from apexdoc ]
ISTEST
Group modules/enterprise
Fields
public answer → AqIAnswer
Methods
public AqMethodReturnValue thenReturn(Object value)
Setup a stubbed return value.
Parameters
| Param | Description |
|---|
value | The value to return from the stubbed method call. |
Returns
| Type | Description |
|---|
AqMethodReturnValue | The AqMethodReturnValue instance to allow you to chain the methods. |
public AqMethodReturnValue thenThrow(Exception e)
Setup a stubbed exception.
Parameters
| Param | Description |
|---|
e | The exception to throw from the stubbed method call. |
Returns
| Type | Description |
|---|
AqMethodReturnValue | The AqMethodReturnValue instance to allow you to chain the methods. |
public void thenAnswer(AqIAnswer answer)
Setup a stubbed answer.
Parameters
| Param | Description |
|---|
answer | The 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
| Param | Description |
|---|
methodInvocation | The invocation to answer for. |
Returns
| Type | Description |
|---|
Object | The 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
| Param | Description |
|---|
value | The value to be set as return value for the StandardAnswer object. |
Returns
| Type | Description |
|---|
StandardAnswer | The StandardAnswer instance. |