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

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

Runs the [Before] methods of a test in the BlockFlexUnit4ClassRunner inline before procceding to the actual test.

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
--- | --- | ---
|  | RunBeforesInline(befores:Array, target:Object, statement:IAsyncStatement) Constructor | RunBeforesInline
|  | evaluate(parentToken:AsyncTestToken):void Begins execution of the Before methods | RunBeforesInline
|  | handleNextStatementExecuteComplete(result:ChildResult):void Called to provide this class an opportunity to inspect or change the result of the test run before allowing control to continue passing up the wrapped statements. | RunBeforesInline
|  | handleSequenceExecuteComplete(result:ChildResult):void Called when all Before methods have been run | RunBeforesInline

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

RunBeforesInline | () | Constructor

`public function RunBeforesInline(befores:Array, target:Object, statement:IAsyncStatement)`

Constructor

Parameters

| `befores:Array` — Array of FrameworkMethod instances with Before metadata
| `target:Object` — The test class
| `statement:IAsyncStatement` — the statement being wrapped by this class

Method Detail

evaluate | () | method

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

Begins execution of the Before methods

Parameters

| `parentToken:AsyncTestToken`

handleNextStatementExecuteComplete | () | method |

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

Called to provide this class an opportunity to inspect or change the result of the test run before allowing control to continue passing up the wrapped statements.

Parameters

| `result:ChildResult`

handleSequenceExecuteComplete | () | method |

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

Called when all Before methods have been run

Parameters

| `result:ChildResult`

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