org.as2lib.core.BasicClass +--org.as2lib.test.mock.support.ReplayState
MockControlState
ReplayState
replays behavior.
new ReplayState()
public function ReplayState(behavior:Behavior)
Constructs a new ReplayState
instance.
behavior | used to verify the expectations and to store actual method calls |
IllegalArgumentException | if the passed-in behavior is
null
|
public function getBehavior(Void):Behavior
Returns the behavior set during instantiation.
the behavior
public function invokeMethod(methodCall:MethodCall)
Registers the actual methodCall
in the method behavior if it was
expected or registers a new unexpected method call.
the value returned by the method behaviour's response method
* | the exception thrown by the method behaviour's response method |
public function verify(Void):Void
Forwards the verification to the behavior of the mock.
public function setMethodResponse(methodResponse:MethodResponse, methodCallRange:MethodCallRange):Void
public function setArgumentsMatcher(argumentsMatcher:ArgumentsMatcher):Void
IllegalStateException |
setArgumentsMatcher() in org.as2lib.test.mock.MockControlState