Fixing modelled STS tests to not include nested JUnit suites 14/214/1
authorjsimomaa <jani.simomaa@vtt.fi>
Mon, 19 Dec 2016 15:03:40 +0000 (17:03 +0200)
committerjsimomaa <jani.simomaa@vtt.fi>
Mon, 19 Dec 2016 15:03:40 +0000 (17:03 +0200)
refs #6884

Change-Id: Ia86e62bae10e6ef12922e168231917bda40fc002

bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeSTSRunner.java

index 6f9bda06a2caaae035e8a8f56ac0f3bc0ec7edc3..e85d2f7d7925bf384aa386c2b35bf45c99fb9dd3 100644 (file)
@@ -10,7 +10,7 @@ import org.junit.runner.notification.RunListener;
 import org.junit.runner.notification.RunNotifier;\r
 import org.junit.runners.ParentRunner;\r
 \r
-public abstract class RuntimeSTSRunner extends ParentRunner<Runner> {\r
+public abstract class RuntimeSTSRunner<T extends Runner> extends ParentRunner<T> {\r
 \r
     public RuntimeSTSRunner(Class<?> testClass) throws Exception {\r
         super(testClass);\r
@@ -20,12 +20,6 @@ public abstract class RuntimeSTSRunner extends ParentRunner<Runner> {
 \r
     public abstract void deinitialize() throws Exception;\r
 \r
-    @Override\r
-    protected List<Runner> getChildren() {\r
-        System.out.println("getting children");\r
-        return RuntimeTestCollector.collectTests();\r
-    }\r
-\r
     @Override\r
     protected Description describeChild(Runner child) {\r
         return child.getDescription();\r