@Order is an annotation that is used to configure the
order in which the annotated element (i.e., field,
method, or class) should be evaluated or executed relative to other elements
of the same category.
When used with
@RegisterExtension or
@ExtendWith,
the category applies to extension fields. When used with
MethodOrderer., the category applies to test methods.
When used with ClassOrderer., the category applies to
test classes.
If @Order is not explicitly declared on an element, the
DEFAULT order value will be assigned to the element.
MethodOrderer.OrderAnnotation , ClassOrderer.OrderAnnotation , @RegisterExtension, @ExtendWith
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT
Default order value for elements not explicitly annotated with |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| DEFAULT | back to summary |
|---|---|
| public static final int DEFAULT Default order value for elements not explicitly annotated with
| |
| value | back to summary |
|---|---|
| public int value() The order value for the annotated element (i.e., field, method, or class). Elements are ordered based on priority where a lower value has greater
priority than a higher value. For example,
| |