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

Package | org.flexunit.internals.builders
Class | public class IgnoredBuilder
Inheritance | IgnoredBuilder RunnerBuilderBase 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
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined 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
|  | 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

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.

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