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

Package | org.flexunit.internals.runners.model
Class | public class EachTestNotifier
Inheritance | EachTestNotifier Object

The `EachTestNotifier` is responsible for instructing a provided `IRunNotifier` about the execution of a specific test. The `EachTestNotifier` is provided with an `IRunNotifier` and a corresponding `IDescription` of the test that is to be executed. It will report to the `IRunNotifier` as it is notified about the execution of the test, providing the necessary description or failure to the `IRunNotifier`.

Public Methods

| Method | Defined By
--- | --- | ---
|  | EachTestNotifier(notifier:IRunNotifier, description:IDescription) Constructor. | EachTestNotifier
|  | addFailedAssumption(error:Error):void Instructs the notifier that the test method has failed an assumption. | EachTestNotifier
|  | addFailure(targetException:Error):void Instructs the notifier that the test method has encountered a failure. | EachTestNotifier
|  | fireTestFinished():void Instructs the notifier that the test method has finished running. | EachTestNotifier
|  | fireTestIgnored():void Instructs the notifier that the test method has been ignored. | EachTestNotifier
|  | fireTestStarted():void Instructs the notifier that the test method has started. | EachTestNotifier

Constructor Detail

EachTestNotifier | () | Constructor

`public function EachTestNotifier(notifier:IRunNotifier, description:IDescription)`

Constructor.

Parameters

| `notifier:IRunNotifier` — The `IRunNotifier` to notify regarding the execution of a specific test.
| `description:IDescription` — An `IDescription` of the current test.

Method Detail

addFailedAssumption | () | method

`public function addFailedAssumption(error:Error):void`

Instructs the notifier that the test method has failed an assumption.

Parameters

| `error:Error` — The assumption that was violated when running the test method.

addFailure | () | method |

`public function addFailure(targetException:Error):void`

Instructs the notifier that the test method has encountered a failure.

Parameters

| `targetException:Error` — The exception that was thrown when running the test method.

fireTestFinished | () | method |

`public function fireTestFinished():void`

Instructs the notifier that the test method has finished running.

fireTestIgnored | () | method |

`public function fireTestIgnored():void`

Instructs the notifier that the test method has been ignored.

fireTestStarted | () | method |

`public function fireTestStarted():void`

Instructs the notifier that the test method has started.

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