1 | void setSuccessCode(String code){↵ | | 1 | void setFailureCode(String code){↵
|
2 | setProperty(SUCCESSCODE,code);↵ | | 2 | setProperty(FAILURECODE,code);↵
|
3 | }↵ | | 3 | }↵
|
4 | ↵ | | |
|
5 | /**↵ | | 4 | /**↵
|
6 | * get the failure message↵ | | 5 | * return the descriptive error for the test↵
|
7 | */↵ | | 6 | */↵
|
8 | public String getFailure(){↵ | | 7 | public String getError(){↵
|
9 | return getPropertyAsString(FAILURE);↵ | | 8 | return getPropertyAsString(ERROR);↵
|
10 | }↵ | | 9 | }↵
|
| | | 10 | ↵
|
11 | /**↵ | | 11 | /**↵
|
12 | * set the failure message↵ | | 12 | * provide a descriptive error for the test method. For↵
|
| | | 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 | * @param fail↵ | | 16 | * @param error↵
|
14 | */↵ | | 17 | */↵
|
15 | public void setFailure(String fail){↵ | | 18 | public void setError(String error){↵
|
16 | setProperty(FAILURE,fail);↵ | | 19 | setProperty(ERROR,error);↵
|
17 | }↵ | | 20 | }↵
|
18 | ↵ | | 21 | ↵
|
19 | /**↵ | | 22 | /**↵
|
20 | * The failure code is used by other components↵ | | 23 | * return the error code for the test method. it should↵
|
| | | 24 | * be an unique error code.↵
|
21 | */↵ | | 25 | */↵
|
22 | public String getFailureCode(){↵ | | 26 | public String getErrorCode(){↵
|
23 | return getPropertyAsString(FAILURECODE);↵ | | 27 | return getPropertyAsString(ERRORCODE);↵
|
24 | | | 28 |
|