public enum MethodSorters extends Enum<MethodSorters>
MethodSorter
implementations.Enum Constant and Description |
---|
DEFAULT
Sorts the test methods in a deterministic, but not predictable, order
|
JVM
Leaves the test methods in the order returned by the JVM.
|
NAME_ASCENDING
Sorts the test methods by the method name, in lexicographic order,
with
Method.toString() used as a tiebreaker |
Modifier and Type | Method and Description |
---|---|
Comparator<Method> |
getComparator() |
static MethodSorters |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodSorters[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodSorters NAME_ASCENDING
Method.toString()
used as a tiebreakerpublic static final MethodSorters JVM
public static final MethodSorters DEFAULT
public static MethodSorters[] values()
for (MethodSorters c : MethodSorters.values()) System.out.println(c);
public static MethodSorters valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic Comparator<Method> getComparator()