Packageorg.flexunit.internals.builders
Classpublic class FlexUnit4Builder
InheritanceFlexUnit4Builder Inheritance RunnerBuilderBase Inheritance 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
 MethodDefined By
  
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
 Inherited
runners(parent:Class, children:Array):Array
Constructs and returns a list of IRunners, one for each child class in children.
RunnerBuilderBase
 Inherited
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.