Package org.junit.jupiter.api
Class MethodOrderer.Alphanumeric
- java.lang.Object
-
- org.junit.jupiter.api.MethodOrderer.Alphanumeric
-
- All Implemented Interfaces:
MethodOrderer
- Enclosing interface:
- MethodOrderer
public static class MethodOrderer.Alphanumeric extends java.lang.Object implements MethodOrderer
MethodOrdererthat sorts methods alphanumerically based on their names usingString.compareTo(String).If two methods have the same name,
Stringrepresentations of their formal parameter lists will be used as a fallback for comparing the methods.
-
-
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 Alphanumeric()
-
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 names and formal parameter lists.-
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 names and formal parameter lists.- Specified by:
orderMethodsin interfaceMethodOrderer- Parameters:
context- theMethodOrdererContextcontaining themethod descriptorsto order; nevernull- See Also:
MethodOrderer.getDefaultExecutionMode()
-
-