1package org.junit.runner.manipulation; 2 3/** 4 * Interface for runners that allow sorting of tests. By sorting tests based on when they last failed, most recently 5 * failed first, you can reduce the average time to the first test failing. Test sorting should not be used to 6 * cope with order dependencies between tests. Tests that are isolated from each other are less 7 * expensive to maintain and can be run individually. 8 */ 9public interface Sortable { 10 11 /** 12 * Sorts the tests using <code>sorter</code> 13 * @param sorter the {@link Sorter} to use for sorting the tests 14 */ 15 public void sort(Sorter sorter); 16 17} 18