package org.argeo.slc.deploy;\r
\r
import org.argeo.slc.build.Distribution;\r
+import org.argeo.slc.process.Executable;\r
\r
-public interface Deployment {\r
+public interface Deployment extends Executable{\r
public DeployedSystem getDeployedSystem();\r
\r
public void setTargetData(TargetData targetData);\r
--- /dev/null
+package org.argeo.slc.process;
+
+/** Any object which can perform processing */
+public interface Executable {
+ /** Executes the actions specified by the object */
+ public void execute();
+}
package org.argeo.slc.test;\r
\r
-/** A test run that can be executed */\r
-public interface ExecutableTestRun extends TestRun {\r
+import org.argeo.slc.process.Executable;\r
\r
- /** Executes this test run. */\r
- public void execute();\r
+/** A test run that can be executed */\r
+public interface ExecutableTestRun extends TestRun, Executable {\r
\r
}\r
+ " is not compatible with TestDefinition "\r
+ testDefinition.getClass());\r
}\r
+\r
+ public IncompatibleTestDataException(TestRun testRun) {\r
+ super("TestData " + testRun.getTestData().getClass()\r
+ + " is not compatible with TestDefinition "\r
+ + testRun.getTestDefinition().getClass());\r
+ }\r
}\r
import org.argeo.slc.SlcException;\r
import org.argeo.slc.core.structure.tree.TreeSRelatedHelper;\r
import org.argeo.slc.core.test.context.ContextUtils;\r
+import org.argeo.slc.test.IncompatibleTestDataException;\r
import org.argeo.slc.test.TestData;\r
import org.argeo.slc.test.TestDefinition;\r
import org.argeo.slc.test.TestResult;\r
ContextUtils.compareReachedExpected((ContextAware) testData,\r
testRun.getTestResult(), this);\r
} else {\r
- throw new SlcException("No test data defined.");\r
+ throw new IncompatibleTestDataException(testRun);\r
}\r
}\r
}\r