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

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

Unlike the`AllDefaultPossibilitiesBuilder` which always returns a test runner for a test by choosing the FlexUnit 4 builder as the default, this Builder only returns builders for recognized tests types.

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | OnlyRecognizedTestClassBuilder(canUseSuiteMethod:Boolean = true) | OnlyRecognizedTestClassBuilder
|  | canHandleClass(testClass:Class):Boolean Returns a boolean value indicating if this builder will be able to handle the testClass or not | RunnerBuilderBase
|  | qualify(testClass:Class):Boolean Determines if we can handle the class in this environment. | OnlyRecognizedTestClassBuilder
|  | runnerForClass(testClass:Class):IRunner [override] Returns an IRunner that can be used by the provided testClass. | AllDefaultPossibilitiesBuilder
|  | 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

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined By
--- | --- | ---
|  | buildBuilders():Array Builds the default set of builders. | AllDefaultPossibilitiesBuilder
|  | flexUnit1Builder():FlexUnit1Builder Returns a FlexUnit1Builder. | AllDefaultPossibilitiesBuilder
|  | flexUnit4Builder():FlexUnit4Builder [override] Returns a FlexUnit4Builder. | OnlyRecognizedTestClassBuilder
|  | fluint1Builder():IRunnerBuilder If Flex classes are compiled into the swc, returns a Fluint1Builder; otherwise, returns a NullBuilder. | AllDefaultPossibilitiesBuilder
|  | ignoredBuilder():IgnoredBuilder Returns an IgnoredBuilder. | AllDefaultPossibilitiesBuilder
|  | metaDataBuilder():MetaDataBuilder Returns a MetaDataBuilder. | AllDefaultPossibilitiesBuilder
|  | suiteMethodBuilder():IRunnerBuilder If suite methods can be used, returns a SuiteMethodBuilder; otherwise, returns a NullBuilder. | AllDefaultPossibilitiesBuilder

Constructor Detail

OnlyRecognizedTestClassBuilder | () | Constructor

`public function OnlyRecognizedTestClassBuilder(canUseSuiteMethod:Boolean = true)`

Parameters

| `canUseSuiteMethod:Boolean` (default = `true`)``

Method Detail

flexUnit4Builder | () | method

`override protected function flexUnit4Builder():FlexUnit4Builder`

Returns a `FlexUnit4Builder`.

Returns

| `FlexUnit4Builder`

qualify | () | method |

`public function qualify(testClass:Class):Boolean`

Determines if we can handle the class in this environment. In other words, is it a recognized type of test

Parameters

| `testClass:Class`

Returns

| `Boolean` — true if it is a test we can handle

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