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

Package | org.flexunit.internals.runners.statements
Class | public class RunAftersInline
Inheritance | RunAftersInline AsyncStatementBase Object
Implements | IAsyncStatement

Runs the [After] methods of a test in the BlockFlexUnit4ClassRunner inline after the actual test has executed.

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
--- | --- | ---
|  | RunAftersInline(afters:Array, target:Object, statement:IAsyncStatement) Constructor | RunAftersInline
|  | evaluate(parentToken:AsyncTestToken):void Called to do any work or setup prior to the actual test run | RunAftersInline
|  | handleNextStatementExecuteComplete(result:ChildResult):void Called when the all statements between the test execution and this statement have completed. | RunAftersInline
|  | handleSequenceExecuteComplete(result:ChildResult):void Called once all methods marked [After] have been executed. | RunAftersInline

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

RunAftersInline | () | Constructor

`public function RunAftersInline(afters:Array, target:Object, statement:IAsyncStatement)`

Constructor

Parameters

| `afters:Array` — an array of FrameworkMethod instances marked with After metadata
| `target:Object` — the actual test case
| `statement:IAsyncStatement` — the statement wrapped by this class

Method Detail

evaluate | () | method

`public function evaluate(parentToken:AsyncTestToken):void`

Called to do any work or setup prior to the actual test run

Parameters

| `parentToken:AsyncTestToken`

handleNextStatementExecuteComplete | () | method |

`public function handleNextStatementExecuteComplete(result:ChildResult):void`

Called when the all statements between the test execution and this statement have completed. This launches the execution of any methods marked with [After]

Parameters

| `result:ChildResult` — the result of the test execution and subsequent statements

handleSequenceExecuteComplete | () | method |

`public function handleSequenceExecuteComplete(result:ChildResult):void`

Called once all methods marked [After] have been executed.

Parameters

| `result:ChildResult`

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