Package | org.flexunit.runner.manipulation.filters |
Class | public class DynamicFilter |
Inheritance | DynamicFilter ![]() ![]() |
Filter
and apply an instance of
your filter to the org.flexunit.runner.Request
before running it (see
org.flexunit.runner.FlexUnitCore#run(Request)
.
//TODO: IRunner is an interface, there is no pre-existing implementing class, does the following
//still apply? Is there a RunWith equivalent
Alternatively, apply a Filter
to
a org.junit.runner.Runner before running tests (for example, in conjunction with
org.junit.runner.RunWith.
See also
Method | Defined By | ||
---|---|---|---|
DynamicFilter(shouldRunFunction:Function, describeFunction:Function)
Constructor
| DynamicFilter | ||
![]() | 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. | AbstractFilter | |
describe(description:IDescription):String [override]
Returns a textual description of this Filter
| DynamicFilter | ||
shouldRun(description:IDescription):Boolean [override]
| DynamicFilter |
DynamicFilter | () | Constructor |
public function DynamicFilter(shouldRunFunction:Function, describeFunction:Function)
Constructor
ParametersshouldRunFunction:Function — function that determines if a method should run
| |
describeFunction:Function — function that describes a method
|
describe | () | method |
override public function describe(description:IDescription):String
Returns a textual description of this Filter
Parameters
description:IDescription |
String — a textual description of this Filter
|
shouldRun | () | method |
override public function shouldRun(description:IDescription):Boolean
Parameters
description:IDescription — the description of the test to be run
|
Boolean — true if the test should be run
|