org.junit.runner.manipulation
Class Sorter
java.lang.Object
   org.junit.runner.manipulation.Sorter
org.junit.runner.manipulation.Sorter
- All Implemented Interfaces: 
- Comparator<Description>
- public class Sorter 
- extends Object- implements Comparator<Description>
A Sorter orders tests. In general you will not need
 to use a Sorter directly. Instead, use Request.sortWith(Comparator).
- Since:
- 4.0
| Field Summary | 
| static Sorter | NULLNULL is a
 Sorterthat leaves elements in an undefined order | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
NULL
public static final Sorter NULL
- NULL is a Sorterthat leaves elements in an undefined order
 
 
Sorter
public Sorter(Comparator<Description> comparator)
- Creates a Sorterthat usescomparatorto sort tests
 
- Parameters:
- comparator- the- Comparatorto use when sorting tests
 
apply
public void apply(Object object)
- Sorts the test in runnerusingcomparator
 
- 
 
- 
 
compare
public int compare(Description o1,
                   Description o2)
- 
- Specified by:
- comparein interface- Comparator<Description>
 
- 
 
Copyright © 2002–2014 JUnit. All rights reserved.