org.as2lib.core.BasicClass +--org.as2lib.test.mock.MethodResponse
MethodResponse
holds and carries out the response if requested.
new MethodResponse()
public function setReturnValue(returnValue):Void
Sets the return value that is returned when invoking the response method.
Setting a return value disables the throwable behavior.
returnValue | the return value to return |
public function setThrowable(throwable):Void
Sets the throwable to throw when the response method is invoked.
Setting a throwable disables the return value behavior.
throwable | the throwable to throw |