java.lang.Object
org.junit.jupiter.api.MethodOrderer.MethodName
- All Implemented Interfaces:
MethodOrderer
- Direct Known Subclasses:
MethodOrderer.Alphanumeric
- Enclosing interface:
MethodOrderer
@API(status=STABLE,
since="5.10")
public static class MethodOrderer.MethodName
extends Object
implements MethodOrderer
MethodOrderer that sorts methods alphanumerically based on their
names using String.compareTo(String).
If two methods have the same name, String representations of
their formal parameter lists will be used as a fallback for comparing the
methods.
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorderMethods(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, waitMethods inherited from interface org.junit.jupiter.api.MethodOrderer
getDefaultExecutionMode
-
Constructor Details
-
MethodName
public MethodName()
-
-
Method Details
-
orderMethods
Sort the methods encapsulated in the suppliedMethodOrdererContextalphanumerically based on their names and formal parameter lists.- Specified by:
orderMethodsin interfaceMethodOrderer- Parameters:
context- theMethodOrdererContextcontaining the method descriptors to order; nevernull- See Also:
-