]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/AsynchronousTreeTestResultListener.java
Replace test result id by UUID
[gpl/argeo-slc.git] / org.argeo.slc.core / src / main / java / org / argeo / slc / core / test / tree / AsynchronousTreeTestResultListener.java
index c22c1102972cc02be8edd9aa684a90fa783c1345..59a58987436cff0a73c0121008ad76db36f69f0c 100644 (file)
@@ -19,13 +19,13 @@ public abstract class AsynchronousTreeTestResultListener implements
        private Vector<PartStruct> partStructs = new Vector<PartStruct>();\r
        private Thread thread;\r
 \r
-       private Boolean synchronous = false;\r
-       \r
-       protected AsynchronousTreeTestResultListener(){\r
-               this(false);\r
+       private Boolean synchronous = true;\r
+\r
+       protected AsynchronousTreeTestResultListener() {\r
+               this(true);\r
        }\r
 \r
-       protected AsynchronousTreeTestResultListener(Boolean synchronousByDefault){\r
+       protected AsynchronousTreeTestResultListener(Boolean synchronousByDefault) {\r
                synchronous = synchronousByDefault;\r
        }\r
 \r
@@ -59,8 +59,8 @@ public abstract class AsynchronousTreeTestResultListener implements
        public final void resultPartAdded(TestResult testResult,\r
                        TestResultPart testResultPart) {\r
                TreeTestResult result = (TreeTestResult) testResult;\r
-               PartStruct partStruct = new PartStruct(result.getCurrentPath(),\r
-                               (NumericTRId) result.getTestResultId(), testResultPart, result);\r
+               PartStruct partStruct = new PartStruct(result.getCurrentPath(), result\r
+                               .getUuid(), testResultPart, result);\r
 \r
                if (!synchronous) {\r
                        synchronized (partStructs) {\r
@@ -108,18 +108,18 @@ public abstract class AsynchronousTreeTestResultListener implements
                /** The tree path of this part. */\r
                public final TreeSPath path;\r
                /** The test result id of the related test result */\r
-               public final NumericTRId resultId;\r
+               public final String uuid;\r
                /** The part itself */\r
                public final TestResultPart part;\r
                /** The tree test result itself. */\r
                public final TreeTestResult result;\r
 \r
                /** Constructor */\r
-               public PartStruct(TreeSPath path, NumericTRId resultId,\r
-                               TestResultPart part, TreeTestResult result) {\r
+               public PartStruct(TreeSPath path, String uuid, TestResultPart part,\r
+                               TreeTestResult result) {\r
                        super();\r
                        this.path = path;\r
-                       this.resultId = resultId;\r
+                       this.uuid = uuid;\r
                        this.part = part;\r
                        this.result = result;\r
                }\r