Packageorg.flexunit.internals.runners.model
Classpublic class EachTestNotifier
InheritanceEachTestNotifier Inheritance 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
 MethodDefined By
  
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
  
Instructs the notifier that the test method has finished running.
EachTestNotifier
  
Instructs the notifier that the test method has been ignored.
EachTestNotifier
  
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.