Packageorg.flexunit.internals.builders
Classpublic class IgnoredBuilder
InheritanceIgnoredBuilder Inheritance RunnerBuilderBase Inheritance Object

The IgnoredBuilder potentially builds an IgnoredClassRunner for a provided testClass. It is determined whether the testClass is marked as being ignored with a metadata tag ([Ignore]). If this is the case, a IgnoredClassRunner 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
IgnoredBuilder
  
runnerForClass(testClass:Class):IRunner
[override] Returns a IgnoredClassRunner if the testClass has an [Ignore] metadata tag.
IgnoredBuilder
 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
runnerForClass()method 
override public function runnerForClass(testClass:Class):IRunner

Returns a IgnoredClassRunner if the testClass has an [Ignore] metadata tag.

Parameters

testClass:Class — The class to check.

Returns
IRunner — a IgnoredClassRunner if the testClass has an [Ignore] metadata tag; otherwise, a value of null is returned.