1 package org.simantics.scl.osgi.internal;
\r
3 import java.util.ArrayList;
\r
4 import java.util.Collections;
\r
5 import java.util.Comparator;
\r
6 import java.util.List;
\r
8 import org.simantics.scl.compiler.testing.TestRunnable;
\r
9 import org.simantics.scl.osgi.SCLOsgi;
\r
11 public class TestUtils {
\r
12 public static List<TestRunnable> getTests() {
\r
13 ArrayList<TestRunnable> result = new ArrayList<TestRunnable>();
\r
14 SCLOsgi.TEST_REPOSITORY.collectTests(result);
\r
15 Collections.sort(result, new Comparator<TestRunnable>() {
\r
17 public int compare(TestRunnable o1, TestRunnable o2) {
\r
18 return o1.getName().compareTo(o2.getName());
\r