org.junit.runner.manipulation
Interface Orderable
- All Superinterfaces:
- Sortable
- All Known Implementing Classes:
- AllTests, BlockJUnit4ClassRunner, BlockJUnit4ClassRunnerWithParameters, Categories, Enclosed, org.junit.internal.runners.JUnit38ClassRunner, JUnit4, JUnit4TestAdapter, Parameterized, ParentRunner, Suite, org.junit.internal.runners.SuiteMethod, Theories
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 Detail |
---|
order
void order(Orderer orderer) throws InvalidOrderingException
-
Orders the tests using
orderer
-
-
- Throws:
-
InvalidOrderingException
- if orderer does something invalid (like remove or add children)