]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/test/TestStatus.java
Refactor package names
[gpl/argeo-slc.git] / runtime / org.argeo.slc.specs / src / main / java / org / argeo / slc / test / TestStatus.java
diff --git a/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/test/TestStatus.java b/runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/test/TestStatus.java
new file mode 100644 (file)
index 0000000..2392ba9
--- /dev/null
@@ -0,0 +1,29 @@
+package org.argeo.slc.test;\r
+\r
+/**\r
+ * Simple statuses.\r
+ * <p>\r
+ * <ul>\r
+ * <li>{@link #PASSED}: the test succeeded</li>\r
+ * <li>{@link #FAILED}: the test could run, but did not reach the expected\r
+ * result</li>\r
+ * <li>{@link #ERROR}: an error during the test run prevented to get a\r
+ * significant information on the tested system.</li>\r
+ * </ul>\r
+ * </p>\r
+ */\r
+public interface TestStatus {\r
+       /** The flag for a passed test: 0 */\r
+       public final static Integer PASSED = 0;\r
+       /** The flag for a failed test: 1 */\r
+       public final static Integer FAILED = 1;\r
+       /**\r
+        * The flag for a test which could not properly run because of an error\r
+        * (there is no feedback on the behavior of the tested component): 2\r
+        */\r
+       public final static Integer ERROR = 2;\r
+       public final static String STATUSSTR_PASSED = "PASSED";\r
+       public final static String STATUSSTR_FAILED = "FAILED";\r
+       public final static String STATUSSTR_ERROR = "ERROR";\r
+\r
+}\r