Refactor Argeo API
[gpl/argeo-slc.git] / org.argeo.api.slc / src / org / argeo / api / slc / test / TestResult.java
diff --git a/org.argeo.api.slc/src/org/argeo/api/slc/test/TestResult.java b/org.argeo.api.slc/src/org/argeo/api/slc/test/TestResult.java
new file mode 100644 (file)
index 0000000..76e9b7e
--- /dev/null
@@ -0,0 +1,27 @@
+package org.argeo.api.slc.test;
+
+import java.util.Date;
+import java.util.Map;
+
+/** The result of a test */
+public interface TestResult extends TestStatus, TestRunAware {
+       public String getUuid();
+
+       /** Adds a part of the result. */
+       public void addResultPart(TestResultPart part);
+
+       /**
+        * Marks that the collection of test results is completed and free the
+        * related resources (also closing listeners).
+        */
+       public void close();
+
+       /**
+        * The date when this test result was closed. Can be null, which means the
+        * result is not closed.
+        */
+       public Date getCloseDate();
+
+       /** Additional arbitrary meta data */
+       public Map<String, String> getAttributes();
+}