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
Nested ClassesModifier and TypeClassDescriptionstatic classClass Visitor that constructs a map of method name to source line number.static classComparator of methods according to their line number.static classMethod Visitor that records method source line number. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsortMethodsUsingSourceOrder(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
-