Merge tag 'v2.3.15' into testing
[gpl/argeo-slc.git] / org.argeo.api.slc / src / org / argeo / api / slc / test / TestResultListener.java
diff --git a/org.argeo.api.slc/src/org/argeo/api/slc/test/TestResultListener.java b/org.argeo.api.slc/src/org/argeo/api/slc/test/TestResultListener.java
new file mode 100644 (file)
index 0000000..5bce3cf
--- /dev/null
@@ -0,0 +1,10 @@
+package org.argeo.api.slc.test;
+
+/** Listener to the operations on a test result. */
+public interface TestResultListener<T extends TestResult> {
+       /** Notified when a part was added to a test result. */
+       public void resultPartAdded(T testResult, TestResultPart testResultPart);
+
+       /** Stops listening and release the related resources. */
+       public void close(T testResult);
+}