1 package org
.argeo
.slc
.core
.test
;
3 import org
.argeo
.slc
.core
.deploy
.DeployedSystem
;
5 public class TestRunDescriptor
{
6 private String testRunUuid
;
7 private String slcExecutionUuid
;
8 private String slcExecutionStepUuid
;
9 private String testResultUuid
;
10 private String deployedSytemId
;
12 public TestRunDescriptor() {
16 public TestRunDescriptor(TestRun testRun
) {
17 testRunUuid
= testRun
.getUuid();
19 if (testRun
.getTestResult() != null)
20 testResultUuid
= testRun
.<TestResult
> getTestResult().getUuid();
22 if (testRun
.getDeployedSystem() != null)
23 deployedSytemId
= testRun
.<DeployedSystem
> getDeployedSystem()
24 .getDeployedSystemId();
26 if (testRun
instanceof SimpleTestRun
) {
27 slcExecutionUuid
= ((SimpleTestRun
) testRun
).getSlcExecutionUuid();
28 slcExecutionStepUuid
= ((SimpleTestRun
) testRun
)
29 .getSlcExecutionStepUuid();
33 public String
getTestRunUuid() {
37 public void setTestRunUuid(String testRunUuid
) {
38 this.testRunUuid
= testRunUuid
;
41 public String
getSlcExecutionUuid() {
42 return slcExecutionUuid
;
45 public void setSlcExecutionUuid(String slcExecutionUuid
) {
46 this.slcExecutionUuid
= slcExecutionUuid
;
49 public String
getSlcExecutionStepUuid() {
50 return slcExecutionStepUuid
;
53 public void setSlcExecutionStepUuid(String slcExecutionStepUuid
) {
54 this.slcExecutionStepUuid
= slcExecutionStepUuid
;
57 public String
getTestResultUuid() {
58 return testResultUuid
;
61 public void setTestResultUuid(String testResultUuid
) {
62 this.testResultUuid
= testResultUuid
;
65 public String
getDeployedSytemId() {
66 return deployedSytemId
;
69 public void setDeployedSytemId(String deploymentId
) {
70 this.deployedSytemId
= deploymentId
;
74 public boolean equals(Object obj
) {
75 if (obj
instanceof TestRunDescriptor
) {
76 return getTestRunUuid().equals(
77 ((TestRunDescriptor
) obj
).getTestRunUuid());