Package 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
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
order(Orderer orderer)
Orders the tests usingorderer
-
-
-
Method Detail
-
order
void order(Orderer orderer) throws InvalidOrderingException
Orders the tests usingorderer
- Throws:
InvalidOrderingException
- if orderer does something invalid (like remove or add children)
-
-