public class SimpleTestRun implements WritableTestRun, ExecutableTestRun {\r
private String uuid;\r
\r
- private String slcExecutionUuid;\r
- private String slcExecutionStepUuid;\r
+ // private String slcExecutionUuid;\r
+ // private String slcExecutionStepUuid;\r
\r
private DeployedSystem deployedSystem;\r
private TestData testData;\r
this.uuid = uuid;\r
}\r
\r
- public String getSlcExecutionUuid() {\r
- return slcExecutionUuid;\r
- }\r
-\r
- public void setSlcExecutionUuid(String slcExecutionUuid) {\r
- this.slcExecutionUuid = slcExecutionUuid;\r
- }\r
-\r
- public String getSlcExecutionStepUuid() {\r
- return slcExecutionStepUuid;\r
- }\r
-\r
- public void setSlcExecutionStepUuid(String slcExecutionStepUuid) {\r
- this.slcExecutionStepUuid = slcExecutionStepUuid;\r
- }\r
+ // public String getSlcExecutionUuid() {\r
+ // return slcExecutionUuid;\r
+ // }\r
+ //\r
+ // public void setSlcExecutionUuid(String slcExecutionUuid) {\r
+ // this.slcExecutionUuid = slcExecutionUuid;\r
+ // }\r
+ //\r
+ // public String getSlcExecutionStepUuid() {\r
+ // return slcExecutionStepUuid;\r
+ // }\r
+ //\r
+ // public void setSlcExecutionStepUuid(String slcExecutionStepUuid) {\r
+ // this.slcExecutionStepUuid = slcExecutionStepUuid;\r
+ // }\r
}\r
+++ /dev/null
-/*
- * Copyright (C) 2007-2012 Mathieu Baudier
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.argeo.slc.runtime;
-
-import java.util.Map;
-import java.util.Properties;
-
-import org.argeo.slc.process.SlcExecution;
-
-/** Will be removed soon */
-@Deprecated
-public interface SlcApplication<T extends SlcExecutionContext> {
- public void execute(SlcExecution slcExecution, Properties properties,
- Map<String, Object> references,
- SlcExecutionOutput<T> executionOutput);
-}
+++ /dev/null
-/*
- * Copyright (C) 2007-2012 Mathieu Baudier
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.argeo.slc.runtime;
-
-import org.argeo.slc.process.SlcExecution;
-
-/** Provides access to the object used during the execution */
-@Deprecated
-public interface SlcExecutionContext {
- public <T> T getBean(String name);
-
- public SlcExecution getSlcExecution();
-}
+++ /dev/null
-/*
- * Copyright (C) 2007-2012 Mathieu Baudier
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.argeo.slc.runtime;
-
-@Deprecated
-public interface SlcExecutionOutput<T extends SlcExecutionContext> {
- /** Called after the execution, before the resources are freed. */
- public void postExecution(T executionContext);
-}
+++ /dev/null
-/*
- * Copyright (C) 2007-2012 Mathieu Baudier
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.argeo.slc.runtime;
-
-import java.util.Map;
-import java.util.Properties;
-
-import org.argeo.slc.runtime.SlcExecutionContext;
-import org.argeo.slc.runtime.SlcExecutionOutput;
-
-@Deprecated
-public interface SlcRuntime<T extends SlcExecutionContext> {
- public void executeScript(String runtime, String script, String targets,
- Properties properties, Map<String, Object> references,
- SlcExecutionOutput<T> executionOutput);
-}
+++ /dev/null
-/*\r
- * Copyright (C) 2007-2012 Mathieu Baudier\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-/** \r
- * A report that can be generated based on a given test result. <b>This\r
- * interface may change in the future.</b>\r
- * @deprecated\r
- */\r
-public interface TestReport {\r
- /** Performs the actions necessary to generate a report. */\r
- public void generateTestReport(TestResult result);\r
-}\r
*/\r
package org.argeo.slc.test;\r
\r
+/** Allows a test run to notify other objects. */\r
public interface TestRunAware {\r
/** Notifies the current test run. */\r
public void notifyTestRun(TestRun testRun);\r
+++ /dev/null
-/*\r
- * Copyright (C) 2007-2012 Mathieu Baudier\r
- *\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-package org.argeo.slc.test;\r
-\r
-import java.io.Serializable;\r
-\r
-import org.argeo.slc.deploy.DeployedSystem;\r
-import org.argeo.slc.process.SlcExecutionRelated;\r
-\r
-public class TestRunDescriptor implements Serializable {\r
- private static final long serialVersionUID = -6488010128523489018L;\r
- private String testRunUuid;\r
- private String slcExecutionUuid;\r
- private String slcExecutionStepUuid;\r
- private String testResultUuid;\r
- private String deployedSytemId;\r
-\r
- public TestRunDescriptor() {\r
-\r
- }\r
-\r
- public TestRunDescriptor(TestRun testRun) {\r
- testRunUuid = testRun.getUuid();\r
-\r
- if (testRun.getTestResult() != null)\r
- testResultUuid = testRun.<TestResult> getTestResult().getUuid();\r
-\r
- if (testRun.getDeployedSystem() != null)\r
- deployedSytemId = testRun.<DeployedSystem> getDeployedSystem()\r
- .getDeployedSystemId();\r
-\r
- if (testRun instanceof SlcExecutionRelated) {\r
- slcExecutionUuid = ((SlcExecutionRelated) testRun)\r
- .getSlcExecutionUuid();\r
- slcExecutionStepUuid = ((SlcExecutionRelated) testRun)\r
- .getSlcExecutionStepUuid();\r
- }\r
- }\r
-\r
- public String getTestRunUuid() {\r
- return testRunUuid;\r
- }\r
-\r
- public void setTestRunUuid(String testRunUuid) {\r
- this.testRunUuid = testRunUuid;\r
- }\r
-\r
- public String getSlcExecutionUuid() {\r
- return slcExecutionUuid;\r
- }\r
-\r
- public void setSlcExecutionUuid(String slcExecutionUuid) {\r
- this.slcExecutionUuid = slcExecutionUuid;\r
- }\r
-\r
- public String getSlcExecutionStepUuid() {\r
- return slcExecutionStepUuid;\r
- }\r
-\r
- public void setSlcExecutionStepUuid(String slcExecutionStepUuid) {\r
- this.slcExecutionStepUuid = slcExecutionStepUuid;\r
- }\r
-\r
- public String getTestResultUuid() {\r
- return testResultUuid;\r
- }\r
-\r
- public void setTestResultUuid(String testResultUuid) {\r
- this.testResultUuid = testResultUuid;\r
- }\r
-\r
- public String getDeployedSytemId() {\r
- return deployedSytemId;\r
- }\r
-\r
- public void setDeployedSytemId(String deploymentId) {\r
- this.deployedSytemId = deploymentId;\r
- }\r
-\r
- @Override\r
- public boolean equals(Object obj) {\r
- if (obj instanceof TestRunDescriptor) {\r
- return getTestRunUuid().equals(\r
- ((TestRunDescriptor) obj).getTestRunUuid());\r
- }\r
- return false;\r
- }\r
-}\r