Package org.nuxeo.runtime.test.runner
Class MethodSorter
java.lang.Object
org.nuxeo.runtime.test.runner.MethodSorter
Utility class that sorts a list of JUnit methods according to their source line number.
- Since:
- 7.1
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Class Visitor that constructs a map of method name to source line number.static class
Comparator of methods according to their line number.static class
Method Visitor that records method source line number. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
sortMethodsUsingSourceOrder
(List<org.junit.runners.model.FrameworkMethod> methods) Sorts a list of JUnit methods according to their source line number.
-
Method Details
-
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
-