1 package org
.argeo
.slc
.core
.test
;
3 import org
.argeo
.slc
.core
.deploy
.DeployedSystem
;
4 import org
.argeo
.slc
.core
.process
.SlcExecution
;
6 public class TestRunDescriptor
{
7 private String testRunUuid
;
8 private String slcExecutionUuid
;
9 private String slcExecutionStepUuid
;
10 private String testResultUuid
;
11 private String deployedSytemId
;
13 public TestRunDescriptor() {
17 public TestRunDescriptor(TestRun testRun
) {
18 testRunUuid
= testRun
.getUuid();
20 if (testRun
.getTestResult() != null)
21 testResultUuid
= testRun
.<TestResult
> getTestResult().getUuid();
23 if (testRun
.getDeployedSystem() != null)
24 deployedSytemId
= testRun
.<DeployedSystem
> getDeployedSystem()
25 .getDeployedSystemId();
27 if (testRun
instanceof SimpleTestRun
) {
28 slcExecutionUuid
= ((SimpleTestRun
) testRun
).getSlcExecutionUuid();
29 slcExecutionStepUuid
= ((SimpleTestRun
) testRun
)
30 .getSlcExecutionStepUuid();
34 public String
getTestRunUuid() {
38 public void setTestRunUuid(String testRunUuid
) {
39 this.testRunUuid
= testRunUuid
;
42 public String
getSlcExecutionUuid() {
43 return slcExecutionUuid
;
46 public void setSlcExecutionUuid(String slcExecutionUuid
) {
47 this.slcExecutionUuid
= slcExecutionUuid
;
50 public String
getSlcExecutionStepUuid() {
51 return slcExecutionStepUuid
;
54 public void setSlcExecutionStepUuid(String slcExecutionStepUuid
) {
55 this.slcExecutionStepUuid
= slcExecutionStepUuid
;
58 public String
getTestResultUuid() {
59 return testResultUuid
;
62 public void setTestResultUuid(String testResultUuid
) {
63 this.testResultUuid
= testResultUuid
;
66 public String
getDeployedSytemId() {
67 return deployedSytemId
;
70 public void setDeployedSytemId(String deploymentId
) {
71 this.deployedSytemId
= deploymentId
;
75 public boolean equals(Object obj
) {
76 if (obj
instanceof TestRunDescriptor
) {
77 return getTestRunUuid().equals(
78 ((TestRunDescriptor
) obj
).getTestRunUuid());