Package org.junit.jupiter.api
Annotation Type Order
-
@Target(METHOD) @Retention(RUNTIME) @Documented @API(status=EXPERIMENTAL, since="5.4") public @interface Order
@Orderis a method-level annotation that is used to configure the order in which the annotated method should be executed relative to other methods of the same category.When used with the
MethodOrderer.OrderAnnotationMethodOrderer, the category applies to test methods.If
@Orderis not explicitly declared on a method, the default order value assigned to the method isInteger.MAX_VALUE.- Since:
- 5.4
- See Also:
MethodOrderer.OrderAnnotation
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description intvalueThe order value for the annotated method.
-
-
-
Element Detail
-
value
int value
The order value for the annotated method.Methods are ordered based on priority where a lower value has greater priority than a higher value. For example,
Integer.MAX_VALUEhas the lowest priority.
-
-