java.util.Comparator<Description>public class Sorter extends java.lang.Object implements java.util.Comparator<Description>
Sorter orders tests. In general you will not need
to use a Sorter directly. Instead, use Request.sortWith(Comparator).| Modifier and Type | Field | Description |
|---|---|---|
static Sorter |
NULL |
NULL is a
Sorter that leaves elements in an undefined order |
| Constructor | Description |
|---|---|
Sorter(java.util.Comparator<Description> comparator) |
Creates a
Sorter that uses comparator
to sort tests |
| Modifier and Type | Method | Description |
|---|---|---|
void |
apply(java.lang.Object object) |
Sorts the test in
runner using comparator |
int |
compare(Description o1,
Description o2) |
public static Sorter NULL
Sorter that leaves elements in an undefined orderpublic Sorter(java.util.Comparator<Description> comparator)
Sorter that uses comparator
to sort testscomparator - the Comparator to use when sorting testspublic void apply(java.lang.Object object)
runner using comparatorpublic int compare(Description o1, Description o2)
compare in interface java.util.Comparator<Description>