public class

Sorter

extends Object
implements Comparator<T>
java.lang.Object
   ↳ org.junit.runner.manipulation.Sorter

Class Overview

A Sorter orders tests. In general you will not need to use a Sorter directly. Instead, use sortWith(Comparator).

Summary

Fields
public static Sorter NULL NULL is a Sorter that leaves elements in an undefined order
Public Constructors
Sorter(Comparator<Description> comparator)
Creates a Sorter that uses comparator to sort tests
Public Methods
void apply(Object object)
Sorts the test in runner using comparator
int compare(Description o1, Description o2)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Comparator

Fields

public static Sorter NULL

NULL is a Sorter that leaves elements in an undefined order

Public Constructors

public Sorter (Comparator<Description> comparator)

Creates a Sorter that uses comparator to sort tests

Parameters
comparator the Comparator to use when sorting tests

Public Methods

public void apply (Object object)

Sorts the test in runner using comparator

public int compare (Description o1, Description o2)