X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Ftest%2FSimpleResultPart.java;h=249fd2149f58a93cd43aa1a4f56ee161e9e71fd8;hb=b5c4e0c9c2fcf788a56d6ce72989fe15182e057d;hp=19fd2d5c275d280941a6290a79dcff9429bb41ec;hpb=1a85bfb58f79c5f85b86f8b77aeed8eb0bbe238e;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc/src/main/java/org/argeo/slc/core/test/SimpleResultPart.java b/org.argeo.slc/src/main/java/org/argeo/slc/core/test/SimpleResultPart.java index 19fd2d5c2..249fd2149 100644 --- a/org.argeo.slc/src/main/java/org/argeo/slc/core/test/SimpleResultPart.java +++ b/org.argeo.slc/src/main/java/org/argeo/slc/core/test/SimpleResultPart.java @@ -5,24 +5,10 @@ package org.argeo.slc.core.test; * Basic implementation of a result part, implementing the standard three status * approach for test results. *

- *

- *

- *

+ * + * @see TestStatus */ -public class SimpleResultPart implements TestResultPart { - - /** The flag for a passed test: 1 */ - public final static int PASSED = 1; - /** The flag for a failed test: 2 */ - public final static int FAILED = 2; - /** The flag for a test which could not properly run because of an error: 3 */ - public final static int ERROR = 3; +public class SimpleResultPart implements TestResultPart, TestStatus { /** For ORM */ private Long tid; @@ -31,6 +17,19 @@ public class SimpleResultPart implements TestResultPart { private String message; private Throwable exception; + public SimpleResultPart() { + } + + public SimpleResultPart(Integer status, String message) { + this(status, message, null); + } + + public SimpleResultPart(Integer status, String message, Throwable exception) { + this.status = status; + this.message = message; + this.exception = exception; + } + public String getMessage() { return message; }