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

Package | org.flexunit.runner.manipulation
Interface | public interface IFilter
Implementors | AbstractFilter

Interface describing an IFilter which can be applied to a Request to filter the executed tests

Public Methods

| Method | Defined By
--- | --- | ---
|  | apply(child:Object):void Invoke with a org.flexunit.runner.IRunner to cause all tests it intends to run to first be checked with the filter. | IFilter
|  | describe(description:IDescription):String Returns a textual description of this Filter | IFilter
|  | shouldRun(description:IDescription):Boolean | IFilter

Method Detail

apply | () | method

`public function apply(child:Object):void`

Invoke with a `org.flexunit.runner.IRunner` to cause all tests it intends to run to first be checked with the filter. Only those that pass the filter will be run.

Parameters

| `child:Object` — the runner to be filtered by the receiver

Throws

| `NoTestsRemainException` — if the receiver removes all tests

describe | () | method |

`public function describe(description:IDescription):String`

Returns a textual description of this Filter

Parameters

| `description:IDescription`

Returns

| `String` — a textual description of this Filter

shouldRun | () | method |

`public function shouldRun(description:IDescription):Boolean`

Parameters

| `description:IDescription` — the description of the test to be run

Returns

| `Boolean` — `true` if the test should be run

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