1 | void setFailureCode(String code){↵ | | 1 | void setSuccessCode(String code){↵
|
2 | setProperty(FAILURECODE,code);↵ | | 2 | setProperty(SUCCESSCODE,code);↵
|
3 | }↵ | | 3 | }↵
|
| | | 4 | ↵
|
4 | /**↵ | | 5 | /**↵
|
5 | * return the descriptive error for the test↵ | | 6 | * get the failure message↵
|
6 | */↵ | | 7 | */↵
|
7 | public String getError(){↵ | | 8 | public String getFailure(){↵
|
8 | return getPropertyAsString(ERROR);↵ | | 9 | return getPropertyAsString(FAILURE);↵
|
9 | }↵ | | 10 | }↵
|
10 | ↵ | | |
|
11 | /**↵ | | 11 | /**↵
|
12 | * provide a descriptive error for the test method. For↵ | | 12 | * ↵
|
13 | * a description of the difference between failure and↵ | | |
|
14 | * error, please refer to the following url↵ | | |
|
15 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵ | | 13 | set the failure message↵
|
16 | * @param error↵ | | 14 | * @param fail↵
|
17 | */↵ | | 15 | */↵
|
18 | public void setError(String error){↵ | | 16 | public void setFailure(String fail){↵
|
19 | setProperty(ERROR,error);↵ | | 17 | setProperty(FAILURE,fail);↵
|
20 | }↵ | | 18 | }↵
|
21 | ↵ | | 19 | ↵
|
22 | /**↵ | | 20 | /**↵
|
23 | * return the error code for the test method. it should↵ | | 21 | * ↵
|
24 | * be an unique error code.↵ | | 22 | The failure code is used by other components↵
|
25 | */↵ | | 23 | */↵
|
26 | public String getErrorCode(){↵ | | 24 | public String getFailureCode(){↵
|
27 | return getPropertyAsString(ERRORCODE);↵ | | 25 | return getPropertyAsString(FAILURECODE);↵
|
28 | } | | 26 | }
|