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

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

The `SuiteMethodBuilder` potentially builds a `SuiteMethod` for a provided testClass. It is determined whether the testClass contains a suite method in order to determine if it is a FlexUnit1 suite. It does this by checking to see if the provided testClass contains a static suite method. If this is the case, a `SuiteMethod` 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 | SuiteMethodBuilder
|  | hasSuiteMethod(testClass:Class):Boolean Determine if the provided testClass has a suite method. | SuiteMethodBuilder
|  | runnerForClass(testClass:Class):IRunner [override] Returns a SuiteMethod if the testClass has a suite method. | SuiteMethodBuilder
|  | 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`

hasSuiteMethod | () | method |

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

Determine if the provided `testClass` has a suite method.

Parameters

| `testClass:Class` — The class to check.

Returns

| `Boolean` — a Boolean value indicating whether the `testClass` has a suite method.

runnerForClass | () | method |

`override public function runnerForClass(testClass:Class):IRunner`

Returns a `SuiteMethod` if the `testClass` has a suite method.

Parameters

| `testClass:Class` — The class to check.

Returns

| `IRunner` — a `SuiteMethod` if the `testClass` has a suite method; otherwise, a value of null is returned.

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