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

Package | org.flexunit.experimental.runners.statements
Class | public class TheoryBlockRunnerStatement
Inheritance | TheoryBlockRunnerStatement AsyncStatementBase Object
Implements | IAsyncStatement

The `TheoryBlockRunnerStatement` is responsible for reporting whether the theory method with specific arguments was successful.

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
--- | --- | ---
|  | TheoryBlockRunnerStatement(statement:IAsyncStatement, anchor:TheoryAnchor, complete:Assignments) Constructor. | TheoryBlockRunnerStatement
|  | evaluate(parentToken:AsyncTestToken):void Executes the current IAsyncStatement that is wrapping the theory method test. | TheoryBlockRunnerStatement
|  | handleChildExecuteComplete(result:ChildResult):void Notifies the anchor if the statement successfully executed and the parent token of any errors that were encountered while running the theory method test. | TheoryBlockRunnerStatement

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

TheoryBlockRunnerStatement | () | Constructor

`public function TheoryBlockRunnerStatement(statement:IAsyncStatement, anchor:TheoryAnchor, complete:Assignments)`

Constructor.

Parameters

| `statement:IAsyncStatement` — The `IAsyncStatement` to execute.
| `anchor:TheoryAnchor` — The anchor associated with the theory method.
| `complete:Assignments` — The `Assignments` associated with the current theory method test.

Method Detail

evaluate | () | method

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

Executes the current `IAsyncStatement` that is wrapping the theory method test.

Parameters

| `parentToken:AsyncTestToken` — The token to be notified when the the current theory method test has finished all other statements.

handleChildExecuteComplete | () | method |

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

Notifies the anchor if the statement successfully executed and the parent token of any errors that were encountered while running the theory method test.

Parameters

| `result:ChildResult` — A `ChildResult` that contains potential errors encountered during the statements execution.

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