1 package org
.argeo
.slc
.test
;
3 import org
.argeo
.slc
.deploy
.DeployedSystem
;
4 import org
.argeo
.slc
.process
.SlcExecutionRelated
;
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 SlcExecutionRelated
) {
28 slcExecutionUuid
= ((SlcExecutionRelated
) testRun
)
29 .getSlcExecutionUuid();
30 slcExecutionStepUuid
= ((SlcExecutionRelated
) testRun
)
31 .getSlcExecutionStepUuid();
35 public String
getTestRunUuid() {
39 public void setTestRunUuid(String testRunUuid
) {
40 this.testRunUuid
= testRunUuid
;
43 public String
getSlcExecutionUuid() {
44 return slcExecutionUuid
;
47 public void setSlcExecutionUuid(String slcExecutionUuid
) {
48 this.slcExecutionUuid
= slcExecutionUuid
;
51 public String
getSlcExecutionStepUuid() {
52 return slcExecutionStepUuid
;
55 public void setSlcExecutionStepUuid(String slcExecutionStepUuid
) {
56 this.slcExecutionStepUuid
= slcExecutionStepUuid
;
59 public String
getTestResultUuid() {
60 return testResultUuid
;
63 public void setTestResultUuid(String testResultUuid
) {
64 this.testResultUuid
= testResultUuid
;
67 public String
getDeployedSytemId() {
68 return deployedSytemId
;
71 public void setDeployedSytemId(String deploymentId
) {
72 this.deployedSytemId
= deploymentId
;
76 public boolean equals(Object obj
) {
77 if (obj
instanceof TestRunDescriptor
) {
78 return getTestRunUuid().equals(
79 ((TestRunDescriptor
) obj
).getTestRunUuid());