]>
git.argeo.org Git - gpl/argeo-slc.git/blob - SimpleResultPart.java
62fd229fc112de6b9f23ce4ca7a87b15cf1e0f12
1 package org
.argeo
.slc
.core
.test
;
3 public class SimpleResultPart
implements TestResultPart
{
5 public final static int PASSED
= 1;
6 public final static int FAILED
= 2;
7 public final static int ERROR
= 3;
12 private Integer status
;
13 private String message
;
14 private Throwable exception
;
16 public String
getMessage() {
20 public void setMessage(String message
) {
21 this.message
= message
;
24 public void setStatus(Integer status
) {
28 public Integer
getStatus() {
32 public Throwable
getException() {
36 public void setException(Throwable exception
) {
37 this.exception
= exception
;
41 public String
toString() {
42 StringBuffer buf
= new StringBuffer("");
43 if (status
== PASSED
) {
44 buf
.append("PASSED ");
45 } else if (status
== FAILED
) {
46 buf
.append("FAILED ");
47 } else if (status
== ERROR
) {
51 if (exception
!= null) {
52 buf
.append("(").append(exception
.getMessage()).append(")");
54 return buf
.toString();
61 void setTid(Long tid
) {