Sortable (JUnit API)

Junit


org.junit.runner.manipulation Interface Sortable

All Known Implementing Classes:
AllTests, BlockJUnit4ClassRunner, org.junit.internal.runners.JUnit38ClassRunner, JUnit4, Parameterized, ParentRunner, Suite, org.junit.internal.runners.SuiteMethod

public interface Sortable

Interface for runners that allow sorting of tests. By sorting tests based on when they last failed, most recently failed first, you can reduce the average time to the first test failing. Test sorting should not be used to cope with order dependencies between tests. Tests that are isolated from each other are less expensive to maintain and can be run individually.


方法摘要
 void sort(Sorter sorter)
          Sorts the tests using sorter
 

方法详细信息

sort

void sort(Sorter sorter)
Sorts the tests using sorter

参数:
sorter - the Sorter to use for sorting the tests