]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.api/src/org/argeo/slc/test/TestStatus.java
Improve SWT packaging
[gpl/argeo-slc.git] / org.argeo.slc.api / src / org / argeo / slc / test / TestStatus.java
1 package org.argeo.slc.test;
2
3 /**
4 * Simple statuses. Ordering of the flags can be relied upon in aggregation: if
5 * one element is failed, the aggregation is failed. Is one element is in ERROR,
6 * the aggregation is in ERROR.
7 * <p>
8 * <ul>
9 * <li>{@link #PASSED}: the test succeeded</li>
10 * <li>{@link #FAILED}: the test could run, but did not reach the expected
11 * result</li>
12 * <li>{@link #ERROR}: an error during the test run prevented to get a
13 * significant information on the tested system.</li>
14 * </ul>
15 * </p>
16 */
17 public interface TestStatus {
18 /** The flag for a passed test: 0 */
19 public final static Integer PASSED = 0;
20 /** The flag for a failed test: 1 */
21 public final static Integer FAILED = 1;
22 /**
23 * The flag for a test which could not properly run because of an error
24 * (there is no feedback on the behavior of the tested component): 2
25 */
26 public final static Integer ERROR = 2;
27 public final static String STATUSSTR_PASSED = "PASSED";
28 public final static String STATUSSTR_FAILED = "FAILED";
29 public final static String STATUSSTR_ERROR = "ERROR";
30
31 }