1 package org
.argeo
.slc
.core
.test
;
3 import org
.argeo
.slc
.core
.deploy
.DeployedSystem
;
6 * A basic bean implementation of a <code>WritableTestRun</code>, holding
7 * references to the various parts of a test run.
9 public class SimpleTestRun
implements WritableTestRun
, ExecutableTestRun
{
10 private DeployedSystem deployedSystem
;
11 private TestData testData
;
12 private TestDefinition testDefinition
;
13 private TestResult testResult
;
15 /** Executes the underlying test definition. */
16 public void execute() {
17 testDefinition
.execute(this);
20 public <T
extends DeployedSystem
> T
getDeployedSystem() {
21 return (T
)deployedSystem
;
24 public void setDeployedSystem(DeployedSystem deployedSystem
) {
25 this.deployedSystem
= deployedSystem
;
28 public <T
extends TestData
> T
getTestData() {
32 public void setTestData(TestData testData
) {
33 this.testData
= testData
;
36 public <T
extends TestDefinition
> T
getTestDefinition() {
37 return (T
)testDefinition
;
40 public void setTestDefinition(TestDefinition testDefinition
) {
41 this.testDefinition
= testDefinition
;
44 public <T
extends TestResult
> T
getTestResult() {
48 public void setTestResult(TestResult testResult
) {
49 this.testResult
= testResult
;