API Documentation | All Packages | All Classes | Index | Frames No Frames |
FlexUnit1Builder

Package | org.flexunit.internals.builders
Class | public class FlexUnit1Builder
Inheritance | FlexUnit1Builder RunnerBuilderBase Object

The `FlexUnit1Builder` potentially builds a `FlexUnit1ClassRunner` for a provided testClass. It is determined whether the testClass descends from a FlexUnit1 `flexunit.framework.TestCase` in the FlexUnit .9 library. If it does, a `FlexUnit1ClassRunner` is created for the test class; however, if it does not fulfill this criteria, no `IRunner` will be generated.

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | canHandleClass(testClass:Class):Boolean [override] Returns a boolean value indicating if this builder will be able to handle the testClass or not | FlexUnit1Builder
|  | isPre4Test(klassInfo:Klass):Boolean Determine if the provided klassInfo is a test class prior to FlexUnit4. | FlexUnit1Builder
|  | runnerForClass(testClass:Class):IRunner [override] Returns a FlexUnit1ClassRunner if the testClass is a FlexUnit 1 test class. | FlexUnit1Builder
|  | runners(parent:Class, children:Array):Array Constructs and returns a list of IRunners, one for each child class in children. | RunnerBuilderBase
|  | safeRunnerForClass(testClass:Class):IRunner Returns an IRunner that can safely run the provided testClass. | RunnerBuilderBase

Method Detail

canHandleClass | () | method

`override public function canHandleClass(testClass:Class):Boolean`

Returns a boolean value indicating if this builder will be able to handle the testClass or not

Parameters

| `testClass:Class` — The class to test to determine an `IRunner`. Returns false, forcing any new subclasses of RunnerBuilderBase to override this method.

Returns

| `Boolean`

isPre4Test | () | method |

`public function isPre4Test(klassInfo:Klass):Boolean`

Determine if the provided `klassInfo` is a test class prior to FlexUnit4.

Parameters

| `klassInfo:Klass` — The klass to check.

Returns

| `Boolean` — a Boolean value indicating whether the `klassInfo` is a test class prior to FlexUnit4.

runnerForClass | () | method |

`override public function runnerForClass(testClass:Class):IRunner`

Returns a `FlexUnit1ClassRunner` if the `testClass` is a FlexUnit 1 test class.

Parameters

| `testClass:Class` — The class to run.

Returns

| `IRunner` — a `FlexUnit1ClassRunner` if the class is a test class is a FlexUnit 1 test; should only be called once you know the class is a FlexUnit1 test.

Thu Apr 10 2014, 08:07 AM +10:00