]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc/src/main/java/org/argeo/slc/core/test/tree/TreeTestResult.java
Persist path and registry
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / test / tree / TreeTestResult.java
index 75df94dacebb6cbba7848236f3dcd1ac51cdf566..5b84115409dc8f602418403cfc3047cdee797627 100644 (file)
@@ -3,6 +3,7 @@ package org.argeo.slc.core.test.tree;
 import java.util.List;\r
 import java.util.SortedMap;\r
 import java.util.TreeMap;\r
+import java.util.Vector;\r
 \r
 import org.apache.commons.logging.Log;\r
 import org.apache.commons.logging.LogFactory;\r
@@ -28,7 +29,7 @@ public class TreeTestResult implements TestResult, StructureAware {
        private Long tid;\r
 \r
        private NumericTRId testResultId;\r
-       private List<TestResultListener> listeners;\r
+       private List<TestResultListener> listeners = new Vector<TestResultListener>();\r
 \r
        private TreeSPath currentPath;\r
 \r
@@ -36,6 +37,8 @@ public class TreeTestResult implements TestResult, StructureAware {
 \r
        private SortedMap<TreeSPath, PartSubList> resultParts = new TreeMap<TreeSPath, PartSubList>();\r
 \r
+       private StructureRegistry registry;\r
+       \r
        public TestResultId getTestResultId() {\r
                return testResultId;\r
        }\r
@@ -77,6 +80,7 @@ public class TreeTestResult implements TestResult, StructureAware {
 \r
        public void notifyCurrentPath(StructureRegistry registry, StructurePath path) {\r
                currentPath = (TreeSPath) path;\r
+               this.registry = registry;\r
        }\r
 \r
        public TreeSPath getCurrentPath() {\r
@@ -117,4 +121,12 @@ public class TreeTestResult implements TestResult, StructureAware {
                this.tid = tid;\r
        }\r
 \r
+       public StructureRegistry getRegistry() {\r
+               return registry;\r
+       }\r
+\r
+       public void setRegistry(StructureRegistry registry) {\r
+               this.registry = registry;\r
+       }\r
+\r
 }\r