View Javadoc
1   package 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    *
9    * @since 4.0
10   */
11  public interface Sortable {
12  
13      /**
14       * Sorts the tests using <code>sorter</code>
15       *
16       * @param sorter the {@link Sorter} to use for sorting the tests
17       */
18      public void sort(Sorter sorter);
19  
20  }