Packageorg.flexunit.internals.runners.statements
Classpublic class InvokeMethod
InheritanceInvokeMethod Inheritance AsyncStatementBase Inheritance Object
Implements IAsyncStatement

The InvokeMethod is responsible for invoking a specific test method in given test class. This class will cause the test to run and will report whether the test successfully passed with no encountered exceptions or if it exceptions were thrown during test execution.



Protected Properties
 PropertyDefined By
 InheritedmyToken : AsyncTestToken
The AsyncTestToken for the current statment.
AsyncStatementBase
 InheritedparentToken : AsyncTestToken
The AsyncTestToken for the parent of the current statment.
AsyncStatementBase
Public Methods
 MethodDefined By
  
InvokeMethod(testMethod:FrameworkMethod, target:Object)
Constructor.
InvokeMethod
  
evaluate(parentToken:AsyncTestToken):void
Executes the test method to be run.
InvokeMethod
Protected Methods
 MethodDefined By
 Inherited
sendComplete(error:Error = null):void
If the parentToken has not already been alerted that the statement has completed, alert the parent token that the current statement has finished.
AsyncStatementBase
Constructor Detail
InvokeMethod()Constructor
public function InvokeMethod(testMethod:FrameworkMethod, target:Object)

Constructor.

Parameters
testMethod:FrameworkMethod — A specific method in the target to test.
 
target:Object — The test class.
Method Detail
evaluate()method
public function evaluate(parentToken:AsyncTestToken):void

Executes the test method to be run.

Parameters

parentToken:AsyncTestToken — The token to be notified when the test method has finished running.