Package org.junit.jupiter.api
Class MethodOrderer.DisplayName
- java.lang.Object
-
- org.junit.jupiter.api.MethodOrderer.DisplayName
-
- All Implemented Interfaces:
MethodOrderer
- Enclosing interface:
- MethodOrderer
@API(status=EXPERIMENTAL, since="5.7") public static class MethodOrderer.DisplayName extends java.lang.Object implements MethodOrdererMethodOrdererthat sorts methods alphanumerically based on their display names usingString.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
-
-
Constructor Summary
Constructors Constructor Description DisplayName()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidorderMethods(MethodOrdererContext context)Sort the methods encapsulated in the suppliedMethodOrdererContextalphanumerically 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
-
-
-
-
Method Detail
-
orderMethods
public void orderMethods(MethodOrdererContext context)
Sort the methods encapsulated in the suppliedMethodOrdererContextalphanumerically based on their display names.- Specified by:
orderMethodsin interfaceMethodOrderer- Parameters:
context- theMethodOrdererContextcontaining themethod descriptorsto order; nevernull- See Also:
MethodOrderer.getDefaultExecutionMode()
-
-