1 | String getYLabel() {↵ | | 1 | String getFailureCode(){↵
|
2 | return getPropertyAsString(REPORT_CHART_Y_LABEL);↵ | | 2 | return getPropertyAsString(FAILURECODE);↵
|
3 | }↵ | | 3 | }↵
|
4 | ↵ | | 4 | ↵
|
| | | 5 | /**↵
|
| | | 6 | * Provide some unique code to denote a type of failure↵
|
| | | 7 | * @param code↵
|
| | | 8 | */↵
|
5 | public void setYLabel(String label) {↵ | | 9 | public void set↵
|
| | | 10 | FailureCode(String code){↵
|
6 | setProperty(REPORT_CHART_Y_LABEL,label);↵ | | 11 | setProperty(FAILURECODE,code);↵
|
7 | }↵ | | 12 | }↵
|
8 | ↵ | | |
|
9 | /**↵ | | 13 | /**↵
|
10 | * The title is a the name for the chart. A page link will↵ | | 14 | * ↵
|
11 | * be generated using the title. The title will also be↵ | | |
|
12 | * used for a page index.↵ | | |
|
13 | * @return chart title↵ | | 15 | return the descriptive error for the test↵
|
14 | */↵ | | 16 | */↵
|
15 | public String getTitle() {↵ | | 17 | public String getError(){↵
|
16 | return getPropertyAsString(REPORT_CHART_TITLE);↵ | | 18 | return getPropertyAsString(ERROR);↵
|
17 | }↵ | | 19 | }↵
|
18 | ↵ | | 20 | ↵
|
19 | /**↵ | | 21 | /**↵
|
20 | * The title is a the name for the chart. A page link will↵ | | 22 | * ↵
|
21 | * be generated using the title. The title will also be↵ | | |
|
22 | * used for a page index.↵ | | 23 | provide a descriptive error for the test method. For↵
|
| | | 24 | * a description of the difference between failure and↵
|
| | | 25 | * error, please refer to the following url↵
|
| | | 26 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵
|
23 | * @param title↵ | | 27 | * @param error↵
|
24 | */↵ | | 28 | */↵
|
25 | public void setTitle(String title) {↵ | | 29 | public void setError(String error){↵
|
26 | setProperty(REPORT_CHART_TITLE,title);↵ | | 30 | setProperty(ERROR,error);↵
|
27 | }↵ | | 31 | }↵
|
| | | 32 | ↵
|
28 | /**↵ | | 33 | /**↵
|
29 | * The caption is a description for the chart explaining↵ | | 34 | * ↵
|
30 | * what the chart means.↵ | | |
|
31 | * @return caption↵ | | 35 | return the error code for the test method. it should↵
|
| | | 36 | * be an unique error code.↵
|
32 | */↵ | | 37 | */↵
|
33 | public String getCaption() {↵ | | 38 | public String getErrorCode(){↵
|
34 | return getPropertyAsString(REPORT_CHART_CAPTION);↵ | | 39 | return getPropertyAsString(ERRORCODE);↵
|
35 | } | | 40 | }
|