java.lang.Object
org.junit.jupiter.api.MethodOrderer.DisplayName
- All Implemented Interfaces:
MethodOrderer
- Enclosing interface:
- MethodOrderer
@API(status=STABLE,
since="5.10")
public static class MethodOrderer.DisplayName
extends Object
implements MethodOrderer
MethodOrderer
that sorts methods alphanumerically based on their
display names using String.compareTo(String)
- Since:
- 5.7
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.jupiter.api.MethodOrderer
MethodOrderer.Alphanumeric, MethodOrderer.DisplayName, MethodOrderer.MethodName, MethodOrderer.OrderAnnotation, MethodOrderer.Random
-
Field Summary
Fields inherited from interface org.junit.jupiter.api.MethodOrderer
DEFAULT_ORDER_PROPERTY_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
orderMethods
(MethodOrdererContext context) Sort the methods encapsulated in the suppliedMethodOrdererContext
alphanumerically based on their display names.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
-
Constructor Details
-
DisplayName
public DisplayName()
-
-
Method Details
-
orderMethods
Sort the methods encapsulated in the suppliedMethodOrdererContext
alphanumerically based on their display names.- Specified by:
orderMethods
in interfaceMethodOrderer
- Parameters:
context
- theMethodOrdererContext
containing the method descriptors to order; nevernull
- See Also:
-