Packageorg.flexunit.async
Classpublic class AsyncTestResponder
InheritanceAsyncTestResponder Inheritance flash.events.EventDispatcher
Implements IAsyncTestResponder

A respoder for asynchronous tests that contains result and fault handlers for the test succeeding or the test failing to succeed.



Public Methods
 MethodDefined By
  
AsyncTestResponder(originalResponder:*)
Constructor.
AsyncTestResponder
  
fault(info:Object):void
Dispatches an AsyncResponseEvent with the orignalResponder, a "fault" status, and the provided info object.
AsyncTestResponder
  
result(data:Object):void
Dispatches an AsyncResponseEvent with the orignalResponder, a "result" status, and the provided info object.
AsyncTestResponder
Events
 Event Summary Defined By
  The 'responderFired' event is fired when either a result or fault is dispatched.AsyncTestResponder
Constructor Detail
AsyncTestResponder()Constructor
public function AsyncTestResponder(originalResponder:*)

Constructor.

Parameters
originalResponder:* — The responder to be passed when the AsyncResponseEvent is dispatched.
Method Detail
fault()method
public function fault(info:Object):void

Dispatches an AsyncResponseEvent with the orignalResponder, a "fault" status, and the provided info object.

Parameters

info:Object

result()method 
public function result(data:Object):void

Dispatches an AsyncResponseEvent with the orignalResponder, a "result" status, and the provided info object.

Parameters

data:Object

Event Detail
responderFired Event
Event Object Type: net.digitalprimates.fluint.events.AsyncResponseEvent

The 'responderFired' event is fired when either a result or fault is dispatched.