Package org.junit.jupiter.api
Class MethodOrderer.OrderAnnotation
- java.lang.Object
-
- org.junit.jupiter.api.MethodOrderer.OrderAnnotation
-
- All Implemented Interfaces:
MethodOrderer
- Enclosing interface:
- MethodOrderer
public static class MethodOrderer.OrderAnnotation extends Object implements MethodOrderer
MethodOrderer
that sorts methods based on the@Order
annotation.Any methods that are assigned the same order value will be sorted arbitrarily adjacent to each other.
Any methods not annotated with
@Order
will be assigned a default order value ofInteger.MAX_VALUE
which will effectively cause them to appear at the end of the sorted list.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.junit.jupiter.api.MethodOrderer
MethodOrderer.Alphanumeric, MethodOrderer.OrderAnnotation, MethodOrderer.Random
-
-
Constructor Summary
Constructors Constructor Description OrderAnnotation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
orderMethods(MethodOrdererContext context)
Sort the methods encapsulated in the suppliedMethodOrdererContext
based on the@Order
annotation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.junit.jupiter.api.MethodOrderer
getDefaultExecutionMode
-
-
-
-
Method Detail
-
orderMethods
public void orderMethods(MethodOrdererContext context)
Sort the methods encapsulated in the suppliedMethodOrdererContext
based on the@Order
annotation.- Specified by:
orderMethods
in interfaceMethodOrderer
- Parameters:
context
- theMethodOrdererContext
containing themethod descriptors
to order; nevernull
- See Also:
MethodOrderer.getDefaultExecutionMode()
-
-