X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.tests.modelled%2Fsrc%2Forg%2Fsimantics%2Ftests%2Fmodelled%2Fjunit%2FRuntimeSTSSuiteRunner.java;h=90abe0e1661d2ef29fe441a09088c2eb8b02baf4;hp=a02c69e85466f8c9fb31229794bb18dcecac7bf6;hb=c2c14cfce252493d4fda9f7cf34a981dfe744432;hpb=ada4db363b15212dbfa34953b03b2d9dbaafa8c6 diff --git a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeSTSSuiteRunner.java b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeSTSSuiteRunner.java index a02c69e85..90abe0e16 100644 --- a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeSTSSuiteRunner.java +++ b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/RuntimeSTSSuiteRunner.java @@ -1,52 +1,59 @@ -package org.simantics.tests.modelled.junit; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import org.junit.runner.Description; -import org.simantics.scl.compiler.commands.CommandSession; -import org.simantics.scl.osgi.SCLOsgi; - -public class RuntimeSTSSuiteRunner extends RuntimeSTSRunner { - - private final List children = new ArrayList<>(); - private final String suiteName; - - protected RuntimeSTSSuiteRunner(Class clazz, String suiteName) throws Exception { - super(clazz); - this.suiteName = suiteName; - } - - @Override - protected String getName() { - return suiteName; - } - - @Override - public Description getDescription() { - Description description = Description.createSuiteDescription(getName(), getRunnerAnnotations()); - getChildren().forEach(child -> description.addChild(describeChild(child))); - return description; - } - - public void addChildren(Collection testChildren) { - CommandSession session = new CommandSession(SCLOsgi.MODULE_REPOSITORY, null); - testChildren.forEach(c -> c.setCommandSession(session)); - children.addAll(testChildren); - } - - @Override - public List getChildren() { - return children; - } - - @Override - public void initialize() throws Exception { - } - - @Override - public void deinitialize() throws Exception { - } - -} +package org.simantics.tests.modelled.junit; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import org.junit.runner.Description; +import org.simantics.scl.compiler.commands.CommandSession; +import org.simantics.scl.osgi.SCLOsgi; + +@Deprecated +public class RuntimeSTSSuiteRunner extends RuntimeSTSRunner { + + private final List children = new ArrayList<>(); + private final String suiteName; + + protected RuntimeSTSSuiteRunner(Class clazz, String suiteName) throws Exception { + super(clazz); + this.suiteName = suiteName; + } + + @Override + protected String getName() { + return suiteName; + } + + @Override + public Description getDescription() { + Description description = Description.createSuiteDescription(getName(), getRunnerAnnotations()); + getChildren().forEach(child -> description.addChild(describeChild(child))); + return description; + } + + public void addChildren(Collection testChildren) { + CommandSession session = new CommandSession(SCLOsgi.MODULE_REPOSITORY, null); + testChildren.forEach(c -> c.setCommandSession(session)); + children.addAll(testChildren); + } + + @Override + protected boolean isIgnored(RuntimeSTSTestRunner child) { + // TODO Auto-generated method stub + return super.isIgnored(child); + } + + @Override + public List getChildren() { + return children; + } + + @Override + public void initialize() throws Exception { + } + + @Override + public void deinitialize() throws Exception { + } + +}