Packageorg.flexunit.internals.runners
Classpublic class Fluint1ClassRunner
InheritanceFluint1ClassRunner Inheritance Object
Implements org.flexunit.runner.IRunner, org.flexunit.runner.manipulation.IFilterable

Runs the associated testClass that is passed into the Fluint1ClassRunner.



Public Properties
 PropertyDefined By
  description : IDescription
[read-only] Returns an IDescription of the test class that the runner is running.
Fluint1ClassRunner
Public Methods
 MethodDefined By
  
Constructor
Fluint1ClassRunner
  
createAdaptingMonitor(notifier:IRunNotifier):TestMonitor
Creates an instance of the FluintAdaptingListener internal class and passes an IRunNotifier to it.
Fluint1ClassRunner
  
filter(filter:IFilter):void
Will apply a Filter to the test object.
Fluint1ClassRunner
  
getClassFromTest(test:*):Class
[static] Returns the Class for a provided Test.
Fluint1ClassRunner
  
pleaseStop():void
Ask that the tests run stop before starting the next test.
Fluint1ClassRunner
  
run(notifier:IRunNotifier, previousToken:IAsyncTestToken):void
Runs the test class and updates the notifier on the status of running the tests.
Fluint1ClassRunner
Protected Methods
 MethodDefined By
  
handleAllTestsComplete(event:Event):void
Handles the results when all of the tests are complete for the class.
Fluint1ClassRunner
  
handleTestComplete(result:ChildResult):void
Handles the results of a single test completing.
Fluint1ClassRunner
Property Detail
descriptionproperty
description:IDescription  [read-only]

Returns an IDescription of the test class that the runner is running.


Implementation
    public function get description():IDescription
Constructor Detail
Fluint1ClassRunner()Constructor
public function Fluint1ClassRunner(clazz:*)

Constructor

Parameters
clazz:* — is an XML Klass that allows the associated Class to be called and run methods associated with the Class.
Method Detail
createAdaptingMonitor()method
public function createAdaptingMonitor(notifier:IRunNotifier):TestMonitor

Creates an instance of the FluintAdaptingListener internal class and passes an IRunNotifier to it.

Parameters

notifier:IRunNotifier — IRunNotifier

Returns
TestMonitor — TestMonitor
filter()method 
public function filter(filter:IFilter):void

Will apply a Filter to the test object.

Parameters

filter:IFilter — Filter

See also

org.flexunit.runner.manipulation.Filter
getClassFromTest()method 
public static function getClassFromTest(test:*):Class

Returns the Class for a provided Test.

Parameters

test:* — The Test for which to obtain the Class.

Returns
Class — the Class for a provided Test.
handleAllTestsComplete()method 
protected function handleAllTestsComplete(event:Event):void

Handles the results when all of the tests are complete for the class. Removes all of the children from the flexUnitTestEnvironment. Also calls sendResult on the token.parentToken.

Parameters

event:Event

See also

org.flexunit.token.AsyncTestToken
handleTestComplete()method 
protected function handleTestComplete(result:ChildResult):void

Handles the results of a single test completing. Removes all of the children from the flexUnitTestEnvironment. Also calls sendResult on the token.parentToken contained in result.

Parameters

result:ChildResult — ChildResult - The results of the running test.

See also

org.flexunit.token.AsyncTestToken
pleaseStop()method 
public function pleaseStop():void

Ask that the tests run stop before starting the next test. Phrased politely because the test currently running will not be interrupted.

run()method 
public function run(notifier:IRunNotifier, previousToken:IAsyncTestToken):void

Runs the test class and updates the notifier on the status of running the tests.

Parameters

notifier:IRunNotifier — The notifier that is notified about issues encountered during the execution of the test class.
 
previousToken:IAsyncTestToken — The token that is to be notified when the runner has finished execution of the test class.