MockControlState determines most of the actual behavior of the
MockControl class.
The actual behavior of the specific methods of this class depends largely on the implementing class. Thus refer to these implementation classes.
public function invokeMethod(call:MethodCall)Is called when a method is called on the mock proxy.
call | contains all information about the method call |
the return value of the method invocation in replay state
| * | if the method is set up to throw a throwable in replay state |
public function setMethodResponse(methodResponse:MethodResponse, methodCallRange:MethodCallRange):VoidSets a new method response.
IllegalStateException.methodResponse | handles incoming requests appropriately |
methodCallRange | stores the minimum and maximum quantity of method calls |
| IllegalArgumentException | when in replay state |
public function setArgumentsMatcher(argumentsMatcher:ArgumentsMatcher):VoidSets a new arguments matcher.
IllegalStateException.argumentsMatcher | the arguments matcher to use for the specific method |
| IllegalArgumentException | when in replay state |
public function verify(Void):VoidVerifies the beahvior.
IllegalStateException.| AssertionFailedError | if any expectation has not been met in replay state |
| IllegalArgumentException | when in record state |