Package org.nuxeo.runtime.test.runner
Class MethodSorter
- java.lang.Object
-
- org.nuxeo.runtime.test.runner.MethodSorter
-
public class MethodSorter extends Object
Utility class that sorts a list of JUnit methods according to their source line number.- Since:
- 7.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MethodSorter.CV
Class Visitor that constructs a map of method name to source line number.static class
MethodSorter.LineComparator
Comparator of methods according to their line number.static class
MethodSorter.MV
Method Visitor that records method source line number.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
sortMethodsUsingSourceOrder(List<org.junit.runners.model.FrameworkMethod> methods)
Sorts a list of JUnit methods according to their source line number.
-
-
-
Method Detail
-
sortMethodsUsingSourceOrder
public static void sortMethodsUsingSourceOrder(List<org.junit.runners.model.FrameworkMethod> methods)
Sorts a list of JUnit methods according to their source line number.- Parameters:
methods
- the JUnit methods
-
-