org.junit.runner.manipulation.Orderable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit Show documentation
Show all versions of junit Show documentation
JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.
package org.junit.runner.manipulation;
/**
* 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
*/
public interface Orderable extends Sortable {
/**
* Orders the tests using orderer
*
* @throws InvalidOrderingException if orderer does something invalid (like remove or add
* children)
*/
void order(Orderer orderer) throws InvalidOrderingException;
}