|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<MethodSorters> org.junit.runners.MethodSorters
public enum MethodSorters
Sort the methods into a specified execution order.
Defines common MethodSorter
implementations.
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MethodSorters NAME_ASCENDING
Method.toString()
used as a tiebreaker
public static final MethodSorters JVM
public static final MethodSorters DEFAULT
Method Detail |
---|
public static final 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 namepublic Comparator<Method> getComparator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |