|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.junit.runner.manipulation.Sorter
public class Sorter
A Sorter
orders tests. In general you will not need
to use a Sorter
directly. Instead, use Request.sortWith(Comparator)
.
Constructor Summary | |
---|---|
Sorter(java.util.Comparator<Description> comparator)
Creates a Sorter that uses comparator
to sort tests |
Method Summary | |
---|---|
void |
apply(Runner runner)
Sorts the test in runner using comparator |
int |
compare(Description o1,
Description o2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public Sorter(java.util.Comparator<Description> comparator)
Sorter
that uses comparator
to sort tests
comparator
- the Comparator
to use when sorting testsMethod Detail |
---|
public void apply(Runner runner)
runner
using comparator
runner
- public int compare(Description o1, Description o2)
compare
in interface java.util.Comparator<Description>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |