1 package org
.argeo
.slc
.msg
.test
.tree
;
5 import org
.argeo
.slc
.core
.structure
.StructureElement
;
6 import org
.argeo
.slc
.core
.structure
.tree
.TreeSPath
;
7 import org
.argeo
.slc
.core
.test
.SimpleResultPart
;
8 import org
.argeo
.slc
.core
.test
.TestRunDescriptor
;
9 import org
.argeo
.slc
.core
.test
.tree
.TreeTestResult
;
11 public class ResultPartRequest
{
12 private String resultUuid
;
13 private SimpleResultPart resultPart
;
14 private TreeSPath path
;
15 private Map
<TreeSPath
, StructureElement
> relatedElements
;
16 private TestRunDescriptor testRunDescriptor
;
18 public ResultPartRequest() {
22 public ResultPartRequest(TreeTestResult ttr
, TreeSPath path
,
23 SimpleResultPart resultPart
) {
24 resultUuid
= ttr
.getUuid();
25 this.resultPart
= resultPart
;
27 relatedElements
= ttr
.getRelatedElements(path
);
28 if (ttr
.getCurrentTestRun() != null)
29 testRunDescriptor
= new TestRunDescriptor(ttr
.getCurrentTestRun());
32 public String
getResultUuid() {
36 public void setResultUuid(String resultUuid
) {
37 this.resultUuid
= resultUuid
;
40 public SimpleResultPart
getResultPart() {
44 public void setResultPart(SimpleResultPart resultPart
) {
45 this.resultPart
= resultPart
;
50 public TreeSPath
getPath() {
54 public void setPath(TreeSPath path
) {
58 public TestRunDescriptor
getTestRunDescriptor() {
59 return testRunDescriptor
;
62 public void setTestRunDescriptor(TestRunDescriptor testRunDescriptor
) {
63 this.testRunDescriptor
= testRunDescriptor
;
66 public Map
<TreeSPath
, StructureElement
> getRelatedElements() {
67 return relatedElements
;
70 public void setRelatedElements(
71 Map
<TreeSPath
, StructureElement
> relatedElements
) {
72 this.relatedElements
= relatedElements
;