]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc/src/main/java/org/argeo/slc/core/test/tree/TreeTestResultPersister.java
Improve comments
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / test / tree / TreeTestResultPersister.java
index 0c32a1a4cfd82caf5a743400e3844c4a66237e24..0621574292f2af41081d1fe1f61d23840c749f00 100644 (file)
@@ -4,7 +4,6 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;\r
 \r
 import org.argeo.slc.core.structure.SimpleSElement;\r
-import org.argeo.slc.core.structure.StructureElement;\r
 import org.argeo.slc.core.structure.StructureRegistry;\r
 import org.argeo.slc.core.structure.tree.TreeSPath;\r
 import org.argeo.slc.core.structure.tree.TreeSRegistry;\r
@@ -41,6 +40,7 @@ public class TreeTestResultPersister extends AsynchronousTreeTestResultListener
                                } else {\r
                                        registry.register(path, new SimpleSElement(path.getName()));\r
                                }\r
+                               treeSRegistryDao.update(registry);\r
                        }\r
 \r
                        if (persistedResult == null) {\r
@@ -89,15 +89,17 @@ public class TreeTestResultPersister extends AsynchronousTreeTestResultListener
                }\r
        }\r
 \r
-       /** Sets the dao to use in order to persist the results. */\r
+       /** Sets the DAO to use in order to persist the results. */\r
        public void setTestResultDao(TestResultDao testResultDao) {\r
                this.testResultDao = testResultDao;\r
        }\r
 \r
+       /** Sets the tree structure path DAO. */\r
        public void setTreeSPathDao(TreeSPathDao treeSPathDao) {\r
                this.treeSPathDao = treeSPathDao;\r
        }\r
 \r
+       /** Sets the tree structure registry DAO. */\r
        public void setTreeSRegistryDao(TreeSRegistryDao treeSRegistryDao) {\r
                this.treeSRegistryDao = treeSRegistryDao;\r
        }\r