MethodResponse
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.test.mock.MethodResponse |
| File last modified: | Thursday, 05 May 2005, 17:04:10 |
MethodResponse holds and carries out the response if requested.Summary
Constructor
Instance methods
Instance methods inherited from BasicClass
Constructor
MethodResponse
function MethodResponse (
Void)
Constructs a new
MethodResponse instance.Instance methods
response
function response (
Void)
Returns the set return value or throws the set throwable. If both have been set
the one that has been set at last will be used.
the one that has been set at last will be used.
Returns:
the set return value
Throws:
the set throwable
setReturnValue
function setReturnValue (
returnValue) : Void
Sets the return value that is returned when invoking the response
method.
method.
Setting a return value disables the throwable behavior.
Parameters:
returnValue:
the return value to return
setThrowable
function setThrowable (
throwable) : Void
Sets the throwable to throw when the response method is invoked.
Setting a throwable disables the return value behavior.
Parameters:
throwable:
the throwable to throw