]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/junit/v2/ModelledSTSTestRunner.java
Use parent name in JUnit STS test identifiers
[simantics/platform.git] / bundles / org.simantics.tests.modelled / src / org / simantics / tests / modelled / junit / v2 / ModelledSTSTestRunner.java
index 5f8ea6c16117fe90f4e4bad19b7095a54200e756..204df96c3f968bdf5f5f1b9dde9a85bc39310f6b 100644 (file)
@@ -5,7 +5,6 @@ import java.util.List;
 
 import org.junit.runner.Description;
 import org.junit.runner.Runner;
-import org.junit.runner.notification.Failure;
 import org.junit.runner.notification.RunNotifier;
 import org.simantics.tests.modelled.utils.ModelledSTSTest;
 import org.simantics.tests.modelled.utils.ModelledSTSTest.CommandSessionVariable;
@@ -22,7 +21,7 @@ public class ModelledSTSTestRunner extends Runner {
     @Override
     public Description getDescription() {
         if (description == null)
-            description = Description.createTestDescription(ModelledSTSTestRunner.class, test.getName());
+            description = Description.createTestDescription(test.getParentName(), test.getName(), new Integer(test.hashCode()));
         return description;
     }