1 | String getTitle() {↵ | | 1 | String getError(){↵
|
2 | return getPropertyAsString(REPORT_CHART_TITLE);↵ | | 2 | return getPropertyAsString(ERROR);↵
|
3 | }↵ | | 3 | }↵
|
4 | ↵ | | 4 | ↵
|
5 | /**↵ | | 5 | /**↵
|
6 | * The title is a the name for the chart. A page link will↵ | | 6 | * ↵
|
7 | * be generated using the title. The title will also be↵ | | |
|
8 | * used for a page index.↵ | | 7 | provide a descriptive error for the test method. For↵
|
| | | 8 | * a description of the difference between failure and↵
|
| | | 9 | * error, please refer to the following url↵
|
| | | 10 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵
|
9 | * @param title↵ | | 11 | * @param error↵
|
10 | */↵ | | 12 | */↵
|
11 | public void setTitle(String title) {↵ | | 13 | public void setError(String error){↵
|
12 | setProperty(REPORT_CHART_TITLE,title);↵ | | 14 | setProperty(ERROR,error);↵
|
13 | }↵ | | 15 | }↵
|
| | | 16 | ↵
|
14 | /**↵ | | 17 | /**↵
|
15 | * The caption is a description for the chart explaining↵ | | 18 | * ↵
|
16 | * what the chart means.↵ | | |
|
17 | * @return caption↵ | | 19 | return the error code for the test method. it should↵
|
| | | 20 | * be an unique error code.↵
|
18 | */↵ | | 21 | */↵
|
19 | public String getCaption() {↵ | | 22 | public String getErrorCode(){↵
|
20 | return getPropertyAsString(REPORT_CHART_CAPTION);↵ | | 23 | return getPropertyAsString(ERRORCODE);↵
|
21 | | | 24 |
|