| Package | org.flexunit.internals.runners |
| Class | public class FlexUnit1ClassRunner |
| Inheritance | FlexUnit1ClassRunner Object |
| Implements | IRunner, IFilterable |
| Subclasses | SuiteMethod |
FlexUnit1ClassRunner is responsible for running FlexUnit1 classes.
| Property | Defined By | ||
|---|---|---|---|
| description : IDescription [read-only]
Returns an IDescription of the test class that the runner is running. | FlexUnit1ClassRunner | ||
| Method | Defined By | ||
|---|---|---|---|
FlexUnit1ClassRunner(klassOrTest:*)
Constructor. | FlexUnit1ClassRunner | ||
[static]
Creates a TestListener using a provided notifier and
token. | FlexUnit1ClassRunner | ||
Will apply a Filter to the test object. | FlexUnit1ClassRunner | ||
getClassFromTest(test:Test):Class [static]
Returns the Class for a provided Test. | FlexUnit1ClassRunner | ||
pleaseStop():void
Ask that the tests run stop before starting the next test. | FlexUnit1ClassRunner | ||
Runs the test class and updates the notifier on the status of running the tests. | FlexUnit1ClassRunner | ||
| Method | Defined By | ||
|---|---|---|---|
describeChild(child:*):IDescription
Returns an IDescription for child. | FlexUnit1ClassRunner | ||
handleTestComplete(result:ChildResult):void
Handles the results of a single test completing. | FlexUnit1ClassRunner | ||
| description | property |
description:IDescription [read-only]
Returns an IDescription of the test class that the runner is running.
public function get description():IDescription| FlexUnit1ClassRunner | () | Constructor |
public function FlexUnit1ClassRunner(klassOrTest:*)Constructor.
ParametersklassOrTest:* — The class or test to run.
|
| createAdaptingListener | () | method |
public static function createAdaptingListener(notifier:IRunNotifier, token:AsyncTestToken):TestListener
Creates a TestListener using a provided notifier and
token.
Parameters
notifier:IRunNotifier — The notifier to notify about the status of the test.
| |
token:AsyncTestToken — The token to nofity when the test has finished.
|
TestListener — a TestListener.
|
| describeChild | () | method |
protected function describeChild(child:*):IDescription
Returns an IDescription for child.
Parameters
child:* — The child to describe.
|
IDescription — an IDescription of the provided child.
|
| filter | () | method |
public function filter(filter:IFilter):void
Will apply a Filter to the test object.
Parameters
filter:IFilter — Filter
|
See also
| getClassFromTest | () | method |
public static function getClassFromTest(test:Test):Class
Returns the Class for a provided Test.
Parameters
test:Test — The Test for which to obtain the Class.
|
Class — the Class for a provided Test.
|
| handleTestComplete | () | method |
protected function handleTestComplete(result:ChildResult):voidHandles the results of a single test completing.
Parameters
result:ChildResult — The results of the running test.
|
| pleaseStop | () | method |
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.
| 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.
|