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

Package | org.flexunit.async
Interface | public interface ITestResponder
Implementors | TestResponder

An `ITestResponder` is an interface for to be implemented by classes that want to handle the results of running a test.

Public Methods

| Method | Defined By
--- | --- | ---
|  | fault(info:Object, passThroughData:Object):void This method is called by TestCase when an error has been received. | ITestResponder
|  | result(data:Object, passThroughData:Object):void This method is called by TestCase when the return value has been received. | ITestResponder

Method Detail

fault | () | method

`public function fault(info:Object, passThroughData:Object):void`

This method is called by TestCase when an error has been received.

Parameters

| `info:Object` — An Object containing information about why the fault occured
| `passThroughData:Object` — An Object containing data that is to be passed to the fault handler function

result | () | method |

`public function result(data:Object, passThroughData:Object):void`

This method is called by TestCase when the return value has been received.

Parameters

| `data:Object` — An Object containing information about the result
| `passThroughData:Object` — An Object containing data that is to be passed to the result handler function

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