org.junit.runner.manipulation
Class Sorter

java.lang.Object
  extended by org.junit.runner.manipulation.Sorter
All Implemented Interfaces:
java.util.Comparator<Description>

public class Sorter
extends java.lang.Object
implements java.util.Comparator<Description>

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)
           
 
Method Summary
 void apply(Runner runner)
           
 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

Sorter

public Sorter(java.util.Comparator<Description> comparator)
Method Detail

apply

public void apply(Runner runner)

compare

public int compare(Description o1,
                   Description o2)
Specified by:
compare in interface java.util.Comparator<Description>