| Package | org.flexunit.runners |
| Class | public class Parameterized |
| Inheritance | Parameterized ParentRunner Object |
| Implements | IExternalDependencyRunner |
| Property | Defined 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 | ||
| Property | Defined By | ||
|---|---|---|---|
| children : Array [override] [read-only]
Returns a list of objects that define the children of this Runner. | Parameterized | ||
![]() | name : String [read-only]
Returns a name used to describe this Runner. | ParentRunner | |
![]() | stopRequested : Boolean = false
private
| ParentRunner | |
![]() | testClass : TestClass [read-only]
Returns a TestClass object wrapping the class to be executed. | ParentRunner | |
| Method | Defined By | ||
|---|---|---|---|
Parameterized(klass:Class)
Constructor. | Parameterized | ||
![]() |
Applies the provided Filter to the runner. | ParentRunner | |
pleaseStop():void [override]
Ask that the tests run stop before starting the next test. | Parameterized | ||
![]() |
Runs the test class and updates the notifier on the status of running the tests. | ParentRunner | |
![]() |
Applies the provided ISorter to the runner. | ParentRunner | |
| Method | Defined By | ||
|---|---|---|---|
![]() |
Returns an IAsyncStatement: Call #runChild(Object, IRunNotifier, AsyncTestToken)
on each object returned by #children() (subject to any imposed
filter and sort). | ParentRunner | |
![]() |
Constructs an IAsyncStatement to run all of the tests in the test class. | ParentRunner | |
![]() | collectInitializationErrors(errors:Array):void
Adds to errors an error for each problem noted with the test class
(available from #testClass()). | ParentRunner | |
![]() | compare(o1:Object, o2:Object):int
This sorting method uses the runner's ISorter to compare two child arguments. | ParentRunner | |
describeChild(child:*):IDescription [override]
Returns an IDescription for child, which can be assumed to
be an element of the list returned by ParentRunner#children(). | Parameterized | ||
![]() |
Returns an IDescription of the test class that the runner is running. | ParentRunner | |
[override]
Runs the test corresponding to child, which can be assumed to be
an element of the list returned by ParentRunner#children(). | Parameterized | ||
![]() | 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 | |
![]() |
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 | |
![]() |
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 | |
| children | property |
children:Array [read-only] [override] Returns a list of objects that define the children of this Runner.
protected function get children():Array| dependencyWatcher | property |
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.
public function set dependencyWatcher(value:IExternalRunnerDependencyWatcher):void| description | property |
description:IDescription [read-only] [override]
public function get description():IDescription| externalDependencyError | property |
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.
public function set externalDependencyError(value:String):void| Parameterized | () | Constructor |
public function Parameterized(klass:Class)Constructor.
Parametersklass:Class — The test class that is to be executed by the runner.
|
| 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.
|
IDescription — an IDescription of the provided child.
|
| pleaseStop | () | method |
override public function pleaseStop():voidAsk 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.
|