Packageorg.flexunit.internals.builders
Classpublic class FlexUnit1Builder
InheritanceFlexUnit1Builder Inheritance RunnerBuilderBase Inheritance 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
 MethodDefined 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
 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
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.