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

Package | org.flexunit.token
Interface | public interface IAsyncTestToken
Implementors | AsyncTestToken

Interface describing viable tokens to be passed between test stages

Public Properties

| Property | Defined By
--- | --- | ---
|  | parentToken : IAsyncTestToken Returns the parentToken of the AsyncTestToken. | IAsyncTestToken

Public Methods

| Method | Defined By
--- | --- | ---
|  | addNotificationMethod(method:Function, debugClassName:String = null):IAsyncTestToken Adds a notification method to the AsyncTestToken and returns the token. | IAsyncTestToken
|  | sendResult(error:Error = null):void If any notification methods exist, invokes the notification methods with a ChildResult that contains a references to this token and the provided error. | IAsyncTestToken

Property Detail

parentToken | property

`parentToken:IAsyncTestToken`

Returns the parentToken of the `AsyncTestToken`.

Implementation
`public function get parentToken():IAsyncTestToken`
`public function set parentToken(value:IAsyncTestToken):void`
Method Detail

addNotificationMethod | () | method

`public function addNotificationMethod(method:Function, debugClassName:String = null):IAsyncTestToken`

Adds a notification `method` to the `AsyncTestToken` and returns the token.

Parameters

| `method:Function` — A `Function` that will be invoked when results are sent.
| `debugClassName:String` (default = `null`)`` — The name of the class.

Returns

| `IAsyncTestToken` — this `AsyncTestToken` with the added `method`.

sendResult | () | method |

`public function sendResult(error:Error = null):void`

If any notification methods exist, invokes the notification methods with a `ChildResult` that contains a references to this token and the provided `error`.

Parameters

| `error:Error` (default = `null`)``

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