Package org.nuxeo.runtime.test.runner
Class MethodSorter.LineComparator
- java.lang.Object
-
- org.nuxeo.runtime.test.runner.MethodSorter.LineComparator
-
- All Implemented Interfaces:
Comparator<org.junit.runners.model.FrameworkMethod>
- Enclosing class:
- MethodSorter
public static class MethodSorter.LineComparator extends Object implements Comparator<org.junit.runners.model.FrameworkMethod>
Comparator of methods according to their line number.
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,Integer>
nameToLine
-
Constructor Summary
Constructors Constructor Description LineComparator(Map<String,Integer> nameToLine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(org.junit.runners.model.FrameworkMethod fm1, org.junit.runners.model.FrameworkMethod fm2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(org.junit.runners.model.FrameworkMethod fm1, org.junit.runners.model.FrameworkMethod fm2)
- Specified by:
compare
in interfaceComparator<org.junit.runners.model.FrameworkMethod>
-
-