Packageorg.flexunit.runners
Classpublic class Parameterized
InheritanceParameterized Inheritance ParentRunner Inheritance Object
Implements IExternalDependencyRunner



Public Properties
 PropertyDefined By
  dependencyWatcher : IExternalRunnerDependencyWatcher
[write-only] Setter for a dependency watcher.
Parameterized
  description : IDescription
[override] [read-only]
Parameterized
  externalDependencyError : String
[write-only] Setter to indicate an error occured while attempting to load exteranl dependencies for this test.
Parameterized
Protected Properties
 PropertyDefined By
  children : Array
[override] [read-only] Returns a list of objects that define the children of this Runner.
Parameterized
 Inheritedname : String
[read-only] Returns a name used to describe this Runner.
ParentRunner
 InheritedstopRequested : Boolean = false
private
ParentRunner
 InheritedtestClass : TestClass
[read-only] Returns a TestClass object wrapping the class to be executed.
ParentRunner
Public Methods
 MethodDefined By
  
Parameterized(klass:Class)
Constructor.
Parameterized
 Inherited
filter(filter:IFilter):void
Applies the provided Filter to the runner.
ParentRunner
  
pleaseStop():void
[override] Ask that the tests run stop before starting the next test.
Parameterized
 Inherited
run(notifier:IRunNotifier, previousToken:IAsyncTestToken):void
Runs the test class and updates the notifier on the status of running the tests.
ParentRunner
 Inherited
sort(sorter:ISorter):void
Applies the provided ISorter to the runner.
ParentRunner
Protected Methods
 MethodDefined By
 Inherited
Returns an IAsyncStatement: Call #runChild(Object, IRunNotifier, AsyncTestToken) on each object returned by #children() (subject to any imposed filter and sort).
ParentRunner
 Inherited
Constructs an IAsyncStatement to run all of the tests in the test class.
ParentRunner
 Inherited
collectInitializationErrors(errors:Array):void
Adds to errors an error for each problem noted with the test class (available from #testClass()).
ParentRunner
 Inherited
compare(o1:Object, o2:Object):int
This sorting method uses the runner's ISorter to compare two child arguments.
ParentRunner
  
[override] Returns an IDescription for child, which can be assumed to be an element of the list returned by ParentRunner#children().
Parameterized
 Inherited
Returns an IDescription of the test class that the runner is running.
ParentRunner
  
runChild(child:*, notifier:IRunNotifier, childRunnerToken:AsyncTestToken):void
[override] Runs the test corresponding to child, which can be assumed to be an element of the list returned by ParentRunner#children().
Parameterized
 Inherited
validatePublicVoidNoArgMethods(metaDataTag:String, isStatic:Boolean, errors:Array):void
Adds to errors if any method in this class is annotated with metaDataTag, but: is not public, or takes parameters, or returns something other than void, or is static (given isStatic is false), or is not static (given isStatic is true).
ParentRunner
 Inherited
Returns an IAsyncStatement: run all non-overridden AfterClass methods on this class and superclasses before executing the statement; all AfterClass methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from AfterClass methods into a MultipleFailureException.
ParentRunner
 Inherited
Returns an IAsyncStatement: run all non-overridden BeforeClass methods on this class and superclasses before executing the statement; if any throws an Exception, stop execution and pass the exception on.
ParentRunner
Property Detail
childrenproperty
children:Array  [read-only] [override]

Returns a list of objects that define the children of this Runner.


Implementation
    protected function get children():Array
dependencyWatcherproperty 
dependencyWatcher:IExternalRunnerDependencyWatcher  [write-only]

Setter for a dependency watcher. This is a class that implements IExternalRunnerDependencyWatcher and watches for any external dependencies (such as loading data) are finalized before execution of tests is allowed to commence.


Implementation
    public function set dependencyWatcher(value:IExternalRunnerDependencyWatcher):void
descriptionproperty 
description:IDescription  [read-only] [override]


Implementation
    public function get description():IDescription
externalDependencyErrorproperty 
externalDependencyError:String  [write-only]

Setter to indicate an error occured while attempting to load exteranl dependencies for this test. It accepts a string to allow the creator of the external dependency loader to pass a viable error string back to the user.


Implementation
    public function set externalDependencyError(value:String):void
Constructor Detail
Parameterized()Constructor
public function Parameterized(klass:Class)

Constructor.

Parameters
klass:Class — The test class that is to be executed by the runner.
Method Detail
describeChild()method
override protected function describeChild(child:*):IDescription

Returns an IDescription for child, which can be assumed to be an element of the list returned by ParentRunner#children().

Parameters

child:* — The child to describe.

Returns
IDescription — an IDescription of the provided child.
pleaseStop()method 
override 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.

runChild()method 
override protected function runChild(child:*, notifier:IRunNotifier, childRunnerToken:AsyncTestToken):void

Runs the test corresponding to child, which can be assumed to be an element of the list returned by ParentRunner#children(). Subclasses are responsible for making sure that relevant test events are reported through notifier.

Parameters

child:* — The child to run.
 
notifier:IRunNotifier — The IRunNotifier to notify on the progress of the child.
 
childRunnerToken:AsyncTestToken — The token used to keep track of the child's execution.