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

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

The `MethodCompleteWithParamsStaetement` is responsible for executing a theory method with a single set of parameters.

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
--- | --- | ---
|  | MethodCompleteWithParamsStatement(frameworkMethod:FrameworkMethod, anchor:TheoryAnchor, complete:Assignments, freshInstance:Object) Constructor. | MethodCompleteWithParamsStatement
|  | evaluate(parentToken:AsyncTestToken):void Executes the current theory method with the provided values from the complete Assignments. | MethodCompleteWithParamsStatement
|  | handleChildExecuteComplete(result:ChildResult):void Tells the parent token that the method has finished running and provides it with any encountered errors. | MethodCompleteWithParamsStatement
|  | toString():String [override] Returns a string that includes the name of the method, the assigned parameters, and the new instance of the current test class. | MethodCompleteWithParamsStatement

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

MethodCompleteWithParamsStatement | () | Constructor

`public function MethodCompleteWithParamsStatement(frameworkMethod:FrameworkMethod, anchor:TheoryAnchor, complete:Assignments, freshInstance:Object)`

Constructor.

Parameters

| `frameworkMethod:FrameworkMethod` — The current theory that is being tested.
| `anchor:TheoryAnchor` — The anchor for the current theory that is being tested.
| `complete:Assignments` — Contains values that can be applied to the theory method.
| `freshInstance:Object` — An instance of the current test class.

Method Detail

evaluate | () | method

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

Executes the current theory method with the provided values from the complete `Assignments`.

Parameters

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

handleChildExecuteComplete | () | method |

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

Tells the parent token that the method has finished running and provides it with any encountered errors.

Parameters

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

toString | () | method |

`override public function toString():String`

Returns a string that includes the name of the method, the assigned parameters, and the new instance of the current test class.

Returns

| `String`

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