aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/runner/manipulation/Orderable.java
blob: 9a12a3bc1ef23a474048a2a2d55556ded52e83cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.junit.runner.manipulation;

/**
 * Interface for runners that allow ordering of tests.
 *
 * <p>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
 */
public interface Orderable extends Sortable {

    /**
     * Orders the tests using <code>orderer</code>
     *
     * @throws InvalidOrderingException if orderer does something invalid (like remove or add
     * children)
     */
    void order(Orderer orderer) throws InvalidOrderingException;
}