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.RunNotifier;
9 import org.simantics.tests.modelled.utils.ModelledSTSTest;
10 import org.simantics.tests.modelled.utils.ModelledSTSTest.CommandSessionVariable;
12 public class ModelledSTSTestRunner extends Runner {
14 private Description description;
15 private ModelledSTSTest test;
17 public ModelledSTSTestRunner(ModelledSTSTest test) {
22 public Description getDescription() {
23 if (description == null)
24 description = Description.createTestDescription(ModelledSTSTestRunner.class.getName(), test.getName(), new Integer(test.hashCode()));
28 public List<CommandSessionVariable> runWithVars(List<CommandSessionVariable> vars) throws IOException {
29 return test.run(vars);
33 public void run(RunNotifier notifier) {
34 throw new UnsupportedOperationException();
37 public boolean isIgnored() {
38 return test.isIgnored();
41 public int getPriority() {
42 return test.getPriority();
45 public ModelledSTSTest getTest() {