Packageorg.flexunit.token
Interfacepublic interface IAsyncTestToken
Implementors AsyncTestToken

Interface describing viable tokens to be passed between test stages



Public Properties
 PropertyDefined By
  parentToken : IAsyncTestToken
Returns the parentToken of the AsyncTestToken.
IAsyncTestToken
Public Methods
 MethodDefined 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
parentTokenproperty
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)