Package | org.flexunit.runner.manipulation |
Class | public class OrderArgumentPlusInheritanceSorter |
Inheritance | OrderArgumentPlusInheritanceSorter ![]() |
Implements | ISorter, IFixtureSorter |
MetadataSorter
compares two values to determine which value is greater. This particular
sorter also looks at class inheritance depth to group ordering by parent and subclass
Property | Defined By | ||
---|---|---|---|
DEFAULT_SORTER : ISorter [static]
ORDER_ARG_INHERITANCE_SORTER is an ISorter and IFixtureSorter which can sort
methods by their order and fixture elements by order and inheritance
| OrderArgumentPlusInheritanceSorter |
Method | Defined By | ||
---|---|---|---|
OrderArgumentPlusInheritanceSorter(existingSorter:ISorter)
Constructor
| OrderArgumentPlusInheritanceSorter | ||
apply(object:Object):void
Sorts the test in runner using compare function. | OrderArgumentPlusInheritanceSorter | ||
Compares its two arguments for order. | OrderArgumentPlusInheritanceSorter | ||
compareFixtureElements(o1:IDescription, o2:IDescription, cache:ISortingInheritanceCache, superFirst:Boolean = true):int
Compares its two arguments for order. | OrderArgumentPlusInheritanceSorter |
DEFAULT_SORTER | property |
public static var DEFAULT_SORTER:ISorter
ORDER_ARG_INHERITANCE_SORTER is an ISorter
and IFixtureSorter
which can sort
methods by their order and fixture elements by order and inheritance
OrderArgumentPlusInheritanceSorter | () | Constructor |
public function OrderArgumentPlusInheritanceSorter(existingSorter:ISorter)
Constructor
ParametersexistingSorter:ISorter — existing order sorting class
|
apply | () | method |
public function apply(object:Object):void
Sorts the test in runner
using compare function
.
Parameters
object:Object |
compare | () | method |
public function compare(o1:IDescription, o2:IDescription):int
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second. If the two objects are of equal order number, then we are simply going to return them in alphabetical order.. This method also takes into account the order of the found objects in terms of their super and sub classes
Parameters
o1:IDescription — IDescription the first object to be compared.
| |
o2:IDescription — IDescription the second object to be compared.
|
int |
compareFixtureElements | () | method |
public function compareFixtureElements(o1:IDescription, o2:IDescription, cache:ISortingInheritanceCache, superFirst:Boolean = true):int
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
Parameters
o1:IDescription — IDescription the first object to be compared.
| |
o2:IDescription — IDescription the second object to be compared.
| |
cache:ISortingInheritanceCache | |
superFirst:Boolean (default = true )
|
int — a negative integer, zero, or a positive integer
as the first argument is less than, equal to, or greater than the second.
|