public class MethodSorter extends Object
Modifier and Type | Field and Description |
---|---|
static Comparator<Method> |
DEFAULT
DEFAULT sort order
|
static Comparator<Method> |
NAME_ASCENDING
Method name ascending lexicographic sort order, with
Method.toString() as a tiebreaker |
Modifier and Type | Method and Description |
---|---|
static Method[] |
getDeclaredMethods(Class<?> clazz)
Gets declared methods of a class in a predictable order, unless @FixMethodOrder(MethodSorters.JVM) is specified.
|
public static final Comparator<Method> DEFAULT
public static final Comparator<Method> NAME_ASCENDING
Method.toString()
as a tiebreakerpublic static Method[] getDeclaredMethods(Class<?> clazz)
clazz
- a classClass.getDeclaredMethods()
but sortedCopyright © 2002–2019 JUnit. All rights reserved.