]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc/src/main/java/org/argeo/slc/core/test/TestResult.java
Improve reporting
[gpl/argeo-slc.git] / org.argeo.slc / src / main / java / org / argeo / slc / core / test / TestResult.java
index 82b3e19a8d9677e820c5e3b81ccb3c62aa0924b8..860fe1caf5bb46deb584c03024f1106854c8264d 100644 (file)
@@ -1,5 +1,24 @@
 package org.argeo.slc.core.test;\r
 \r
+import java.util.Date;\r
+\r
+/** The result of a test */\r
 public interface TestResult {\r
+       /** Gets the id of the related test result. */\r
+       public TestResultId getTestResultId();\r
+\r
+       /** Adds a part of the result. */\r
+       public void addResultPart(TestResultPart part);\r
+\r
+       /**\r
+        * Marks that the collection of test results is completed and free the\r
+        * related resources (also closing listeners).\r
+        */\r
+       public void close();\r
 \r
+       /**\r
+        * The date when this test result was closed. Can be null, which means the\r
+        * result is not closed.\r
+        */\r
+       public Date getCloseDate();\r
 }\r