]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/SimpleTestRun.java
Small enhancements
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / test / SimpleTestRun.java
index 86b35323b2353e55572fec4469ec27fbc99ff2d2..ea71274b428041d02854a8ada55d5d7db95d60ae 100644 (file)
@@ -3,13 +3,11 @@ package org.argeo.slc.core.test;
 import java.util.UUID;\r
 \r
 import org.argeo.slc.core.structure.tree.TreeSPath;\r
-import org.argeo.slc.core.structure.tree.TreeSRegistry;\r
 import org.argeo.slc.deploy.DeployedSystem;\r
 import org.argeo.slc.process.SlcExecution;\r
 import org.argeo.slc.process.SlcExecutionRelated;\r
 import org.argeo.slc.process.SlcExecutionStep;\r
 import org.argeo.slc.structure.StructureAware;\r
-import org.argeo.slc.structure.StructureElement;\r
 import org.argeo.slc.structure.StructureRegistry;\r
 import org.argeo.slc.test.ExecutableTestRun;\r
 import org.argeo.slc.test.TestData;\r
@@ -37,6 +35,7 @@ public class SimpleTestRun implements WritableTestRun, ExecutableTestRun,
        private TestResult testResult;\r
 \r
        /** Executes the underlying test definition. */\r
+       @SuppressWarnings("unchecked")\r
        public void run() {\r
                uuid = UUID.randomUUID().toString();\r
                if (testResult != null)\r
@@ -55,6 +54,7 @@ public class SimpleTestRun implements WritableTestRun, ExecutableTestRun,
                testDefinition.execute(this);\r
        }\r
 \r
+       @SuppressWarnings("unchecked")\r
        public <T extends DeployedSystem> T getDeployedSystem() {\r
                return (T) deployedSystem;\r
        }\r
@@ -63,6 +63,7 @@ public class SimpleTestRun implements WritableTestRun, ExecutableTestRun,
                this.deployedSystem = deployedSystem;\r
        }\r
 \r
+       @SuppressWarnings("unchecked")\r
        public <T extends TestData> T getTestData() {\r
                return (T) testData;\r
        }\r
@@ -71,6 +72,7 @@ public class SimpleTestRun implements WritableTestRun, ExecutableTestRun,
                this.testData = testData;\r
        }\r
 \r
+       @SuppressWarnings("unchecked")\r
        public <T extends TestDefinition> T getTestDefinition() {\r
                return (T) testDefinition;\r
        }\r
@@ -79,6 +81,7 @@ public class SimpleTestRun implements WritableTestRun, ExecutableTestRun,
                this.testDefinition = testDefinition;\r
        }\r
 \r
+       @SuppressWarnings("unchecked")\r
        public <T extends TestResult> T getTestResult() {\r
                return (T) testResult;\r
        }\r