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

Package | org.flexunit.internals.builders
Class | public class FlexUnit4Builder
Inheritance | FlexUnit4Builder RunnerBuilderBase Object
Subclasses | FlexUnit4QualifiedBuilder

The `FlexUnit4Builder` builds a `BlockFlexUnit4ClassRunner` for a provided testClass. A `BlockFlexUnit4ClassRunner` will be built for every testClass that is provided to this builder. This is the last builder to be used with a testClass when determining which `IRunner` to used by the class; the `BlockFlexUnit4ClassRunner` is the default `IRunner` to use with a testClass if no other suitable runner can be found.

See also

org.flexunit.internals.builders.AllDefaultPossibilitiesBuilder.runnerForClass()

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | FlexUnit4Builder() Constructor. | FlexUnit4Builder
|  | canHandleClass(testClass:Class):Boolean [override] Returns a boolean value indicating if this builder will be able to handle the testClass or not | FlexUnit4Builder
|  | runnerForClass(testClass:Class):IRunner [override] Returns a BlockFlexUnit4ClassRunner for the provided testClass. | FlexUnit4Builder
|  | 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

Constructor Detail

FlexUnit4Builder | () | Constructor

`public function FlexUnit4Builder()`

Constructor.

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`

runnerForClass | () | method |

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

Returns a `BlockFlexUnit4ClassRunner` for the provided `testClass`.

Parameters

| `testClass:Class` — The test class provided to the builder.

Returns

| `IRunner` — a `BlockFlexUnit4ClassRunner` for the provided `testClass`.

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