org.junit.runner.manipulation
Class Sorter
java.lang.Objectorg.junit.runner.manipulation.Sorter
- Comparator
public class Sorter
extends java.lang.Object
implements Comparator
A Sorter orders tests. In general you will not need
to use a Sorter directly. Instead, use org.junit.runner.Request.sortWith(Comparator).
Sorter(Comparator comparator)- Creates a
Sorter that uses comparator
to sort tests
|
Sorter
public Sorter(Comparator comparator)
Creates a Sorter that uses comparator
to sort tests
comparator - the Comparator to use when sorting tests
apply
public void apply(Runner runner)
Sorts the test in runner using comparator