org.as2lib.core.BasicInterface +--org.as2lib.test.mock.Behavior
Behavior
stores expected behaviors and exposes them for verification.
public function addMethodBehavior(methodName:String, methodBehavior:MethodBehavior):Void
Adds the given methodBehavior
behavior for the passed-in
methodName
.
methodName | the name of the method to register the methodBehavior
with
|
methodBehavior | the method behavior to register |
public function createMethodBehavior(expectedMethodCall:MethodCall):MethodBehavior
Creates a new method behavior for the passed-in expectedMethodCall
.
expectedMethodCall | the method call to create a behavior for |
the created method behavior
public function getMethodBehavior(actualMethodCall:MethodCall):MethodBehavior
Returns a method behavior that matches the given actualMethodCall
.
a matching method behavior
public function getLastMethodBehavior(Void):MethodBehavior
Returns the lastly added method behavior.
the lastly added method behavior