API Documentation | All Packages | All Classes | Index | Frames No Frames |
InvokeMethod

Package | org.flexunit.internals.runners.statements
Class | public class InvokeMethod
Inheritance | InvokeMethod AsyncStatementBase 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
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined By
--- | --- | ---
|  | myToken : AsyncTestToken The AsyncTestToken for the current statment. | AsyncStatementBase
|  | parentToken : AsyncTestToken The AsyncTestToken for the parent of the current statment. | AsyncStatementBase

Public Methods

| Method | Defined By
--- | --- | ---
|  | InvokeMethod(testMethod:FrameworkMethod, target:Object) Constructor. | InvokeMethod
|  | evaluate(parentToken:AsyncTestToken):void Executes the test method to be run. | InvokeMethod

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined By
--- | --- | ---
|  | 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.

Thu Apr 10 2014, 08:07 AM +10:00