org.as2lib.core.BasicClass +--org.as2lib.test.mock.MethodCall
MethodCall
stores all information available about a method call.
new MethodCall()
public function getMethodName(Void):String
Returns the name of the called method.
the name of the called method
public function getArguments(Void):Array
Returns the arguments used for the method call.
the arguments used for the method call
public function getArgumentsMatcher(Void):ArgumentsMatcher
Returns the currently used arguments matcher.
That is either the arguments matcher set via the setArgumentsMatcher method or an instance of the default DefaultArgumentsMatcher class.
the currently used arguments matcher
public function setArgumentsMatcher(argumentsMatcher:ArgumentsMatcher):Void
Sets the new arguments matcher.
If argumentsMatcher
is null
the getArgumentsMatcher
method returns the default arguments matcher.
argumentsMatcher | the new arguments matcher |
public function matches(methodCall:MethodCall):Boolean
Checks whether this method call matches the passed-in methodCall
.
false
will be returned if:
methodCall
is null
.methodCall | the method call to compare with this instance |
public function toString():String
Returns the string representation of this method call.
The returned string is constructed as follows:
theMethodName(theFirstArgument, ..)
the string representation of this method call
toString() in org.as2lib.core.BasicInterface