import org.simantics.scl.osgi.SCLOsgi;\r
import org.simantics.scl.runtime.reporting.AbstractSCLReportingHandler;\r
import org.simantics.tests.modelled.ontology.TestsResource;\r
+import org.simantics.utils.strings.AlphanumComparator;\r
\r
public class STSTestSuiteModel {\r
\r
Collections.sort(tests, (o1, o2) -> {\r
if (o1.priority < o2.priority)\r
return -1;\r
- if (o1.priority > o2.priority)\r
+ else if (o1.priority > o2.priority)\r
return 1;\r
- return 0;\r
+ else return AlphanumComparator.COMPARATOR.compare(o1.name, o2.name);\r
});\r
suite.children(tests.toArray(new STSTest[tests.size()]));\r
} else {\r
import org.simantics.modeling.ModelingUtils;\r
import org.simantics.scl.runtime.tuple.Tuple0;\r
import org.simantics.tests.modelled.ontology.TestsResource;\r
+import org.simantics.utils.strings.AlphanumComparator;\r
\r
public class RuntimeTestCollector {\r
\r
}\r
\r
testRunners.sort((test1, test2) -> {\r
- if (test1.getPriority() <= test2.getPriority())\r
+ if (test1.getPriority() < test2.getPriority())\r
return -1;\r
- else\r
+ else if (test1.getPriority() > test2.getPriority())\r
return 1;\r
+ else return AlphanumComparator.COMPARATOR.compare(test1.getName(), test2.getName());\r
});\r
suite.addChildren(testRunners);\r
suites.add(suite);\r