X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Ftest%2Ftree%2FAsynchronousTreeTestResultListener.java;h=a3dc33f3ba5505bf90a8e355d49f867cb4faafde;hb=56a8f70a587c793620d1bc2e73c847d935188001;hp=7713e46168b89e5def6037dcb963d0a5cd104d68;hpb=d8903d2623f26fb9bf002f4605d6bce4672918f7;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/AsynchronousTreeTestResultListener.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/AsynchronousTreeTestResultListener.java index 7713e4616..a3dc33f3b 100644 --- a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/AsynchronousTreeTestResultListener.java +++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/test/tree/AsynchronousTreeTestResultListener.java @@ -3,7 +3,6 @@ package org.argeo.slc.core.test.tree; import java.util.Vector; import org.argeo.slc.core.structure.tree.TreeSPath; -import org.argeo.slc.core.test.NumericTRId; import org.argeo.slc.core.test.TestResult; import org.argeo.slc.core.test.TestResultListener; import org.argeo.slc.core.test.TestResultPart; @@ -12,6 +11,7 @@ import org.argeo.slc.core.test.TestResultPart; * Abstract asynchronous implementation of a listener listening to a * TreeTestResult. * + * @deprecated listeners should be called synchronously * @see TreeTestResult */ public abstract class AsynchronousTreeTestResultListener implements @@ -20,12 +20,12 @@ public abstract class AsynchronousTreeTestResultListener implements private Thread thread; private Boolean synchronous = true; - - protected AsynchronousTreeTestResultListener(){ + + protected AsynchronousTreeTestResultListener() { this(true); } - protected AsynchronousTreeTestResultListener(Boolean synchronousByDefault){ + protected AsynchronousTreeTestResultListener(Boolean synchronousByDefault) { synchronous = synchronousByDefault; } @@ -59,8 +59,8 @@ public abstract class AsynchronousTreeTestResultListener implements public final void resultPartAdded(TestResult testResult, TestResultPart testResultPart) { TreeTestResult result = (TreeTestResult) testResult; - PartStruct partStruct = new PartStruct(result.getCurrentPath(), - (NumericTRId) result.getTestResultId(), testResultPart, result); + PartStruct partStruct = new PartStruct(result.getCurrentPath(), result + .getUuid(), testResultPart, result); if (!synchronous) { synchronized (partStructs) { @@ -108,18 +108,18 @@ public abstract class AsynchronousTreeTestResultListener implements /** The tree path of this part. */ public final TreeSPath path; /** The test result id of the related test result */ - public final NumericTRId resultId; + public final String uuid; /** The part itself */ public final TestResultPart part; /** The tree test result itself. */ public final TreeTestResult result; /** Constructor */ - public PartStruct(TreeSPath path, NumericTRId resultId, - TestResultPart part, TreeTestResult result) { + public PartStruct(TreeSPath path, String uuid, TestResultPart part, + TreeTestResult result) { super(); this.path = path; - this.resultId = resultId; + this.uuid = uuid; this.part = part; this.result = result; }