]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc/src/main/java/org/argeo/slc/core/test/SimpleTestRun.java
9cb14ac04bda997be129ebecdd40309b8dc8598c
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / test / SimpleTestRun.java
1 package org.argeo.slc.core.test;
2
3 import org.argeo.slc.core.deploy.DeployedSystem;
4
5 /**
6 * A basic bean implementation of a <code>WritableTestRun</code>, holding
7 * references to the various parts of a test run.
8 */
9 public class SimpleTestRun implements WritableTestRun {
10 private DeployedSystem deployedSystem;
11 private TestData testData;
12 private TestDefinition testDefinition;
13 private TestResult testResult;
14
15 /** Executes the underlying test definition. */
16 public void execute() {
17 testDefinition.execute(this);
18 }
19
20 public DeployedSystem getDeployedSystem() {
21 return deployedSystem;
22 }
23
24 public void setDeployedSystem(DeployedSystem deployedSystem) {
25 this.deployedSystem = deployedSystem;
26 }
27
28 public TestData getTestData() {
29 return testData;
30 }
31
32 public void setTestData(TestData testData) {
33 this.testData = testData;
34 }
35
36 public TestDefinition getTestDefinition() {
37 return testDefinition;
38 }
39
40 public void setTestDefinition(TestDefinition testDefinition) {
41 this.testDefinition = testDefinition;
42 }
43
44 public TestResult getTestResult() {
45 return testResult;
46 }
47
48 public void setTestResult(TestResult testResult) {
49 this.testResult = testResult;
50 }
51
52 }