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:
09: public static final ExecutionStatus OUTPUT = new ExecutionStatus(
10: "Output Captured", "output.gif");
11:
12: public static final ExecutionStatus ERROR = new ExecutionStatus(
13: "Errors Occurred", "error.gif");
14:
15: private String message;
16:
17: private String iconFilename;
18:
19: public ExecutionStatus(String message, String iconFilename) {
20: this .message = message;
21: this .iconFilename = iconFilename;
22: }
23:
24: public String getMessage() {
25: return message;
26: }
27:
28: public String getIconFilename() {
29: return iconFilename;
30: }
31:
32: public String toString() {
33: return "Execution Report: " + message;
34:
35: }
36:
37: }
|