1 package org.simantics.tests.modelled.junit.v2;
3 import java.io.IOException;
6 import org.junit.runner.Description;
7 import org.junit.runner.Runner;
8 import org.junit.runner.notification.Failure;
9 import org.junit.runner.notification.RunNotifier;
10 import org.simantics.tests.modelled.utils.ModelledSTSTest;
11 import org.simantics.tests.modelled.utils.ModelledSTSTest.CommandSessionVariable;
13 public class ModelledSTSTestRunner extends Runner {
15 private Description description;
16 private ModelledSTSTest test;
18 public ModelledSTSTestRunner(ModelledSTSTest test) {
23 public Description getDescription() {
24 if (description == null)
25 description = Description.createTestDescription(ModelledSTSTestRunner.class, test.getName());
29 public List<CommandSessionVariable> runWithVars(List<CommandSessionVariable> vars) throws IOException {
30 return test.run(vars);
34 public void run(RunNotifier notifier) {
35 throw new UnsupportedOperationException();
38 public boolean isIgnored() {
39 return test.isIgnored();
42 public int getPriority() {
43 return test.getPriority();
46 public ModelledSTSTest getTest() {