01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package fitnesse.responders.run;
04:
05: public class ExecutionStatus {
06: public static final ExecutionStatus OK = new ExecutionStatus(
07: "Tests Executed OK", "ok.gif");
08: public static final ExecutionStatus OUTPUT = new ExecutionStatus(
09: "Output Captured", "output.gif");
10: public static final ExecutionStatus ERROR = new ExecutionStatus(
11: "Errors Occurred", "error.gif");
12:
13: private String message;
14: private String iconFilename;
15:
16: public ExecutionStatus(String message, String iconFilename) {
17: this .message = message;
18: this .iconFilename = iconFilename;
19: }
20:
21: public String getMessage() {
22: return message;
23: }
24:
25: public String getIconFilename() {
26: return iconFilename;
27: }
28:
29: public String toString() {
30: return "Execution Report: " + message;
31:
32: }
33:
34: }
|