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

Package | org.flexunit.async
Class | public class AsyncTestResponder
Inheritance | AsyncTestResponder 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

| Method | Defined 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
--- | --- | --- | ---
|  | responderFired | 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.

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