1 package org.junit.runners;
2
3 import java.lang.reflect.Method;
4 import java.util.Comparator;
5
6 import org.junit.internal.MethodSorter;
7
8
9
10
11
12
13
14 public enum MethodSorters {
15
16
17
18
19 NAME_ASCENDING(MethodSorter.NAME_ASCENDING),
20
21
22
23
24
25 JVM(null),
26
27
28
29
30 DEFAULT(MethodSorter.DEFAULT);
31
32 private final Comparator<Method> comparator;
33
34 private MethodSorters(Comparator<Method> comparator) {
35 this.comparator = comparator;
36 }
37
38 public Comparator<Method> getComparator() {
39 return comparator;
40 }
41 }