Interface Orderable

All Superinterfaces:
Sortable
All Known Implementing Classes:
AllTests, BlockJUnit4ClassRunner, BlockJUnit4ClassRunnerWithParameters, Categories, Enclosed, JUnit38ClassRunner, JUnit4, JUnit4TestAdapter, Parameterized, ParentRunner, Suite, SuiteMethod, Theories

public interface Orderable extends Sortable
Interface for runners that allow ordering of tests.

Beware of using this interface to cope with order dependencies between tests. Tests that are isolated from each other are less expensive to maintain and can be run individually.

Since:
4.13
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    order(Orderer orderer)
    Orders the tests using orderer

    Methods inherited from interface org.junit.runner.manipulation.Sortable

    sort