Package org.junit.runner
Annotation Type OrderWith
-
@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface OrderWithWhen a test class is annotated with@OrderWithor extends a class annotated with@OrderWith, JUnit will order the tests in the test class (and child test classes, if any) using the ordering defined by theOrderingclass.- Since:
- 4.13
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends Ordering.Factory>valueGets a class that extendsOrdering.
-
-
-
Element Detail
-
value
java.lang.Class<? extends Ordering.Factory> value
Gets a class that extendsOrdering. The class must have a public no-arg constructor.
-
-