1 | String getFailureCode(){↵ | | 1 | String getError(){↵
|
2 | return getPropertyAsString(FAILURECODE);↵ | | 2 | return getPropertyAsString(ERROR);↵
|
3 | }↵ | | 3 | }↵
|
4 | ↵ | | 4 | ↵
|
5 | /**↵ | | 5 | /**↵
|
6 | * Provide some unique code to denote a type of failure↵ | | 6 | * provide a descriptive error for the test method. For↵
|
| | | 7 | * a description of the difference between failure and↵
|
| | | 8 | * error, please refer to the following url↵
|
| | | 9 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵
|
7 | * @param code↵ | | 10 | * @param error↵
|
8 | */↵ | | 11 | */↵
|
9 | public void setFailureCode(String code){↵ | | 12 | public void setError(String error){↵
|
10 | setProperty(FAILURECODE,code);↵ | | 13 | setProperty(ERROR,error);↵
|
11 | }↵ | | 14 | }↵
|
| | | 15 | ↵
|
12 | /**↵ | | 16 | /**↵
|
13 | * return the descriptive error for the test↵ | | 17 | * return the error code for the test method. it should↵
|
| | | 18 | * be an unique error code.↵
|
14 | */↵ | | 19 | */↵
|
15 | public String getError(){↵ | | 20 | public String getErrorCode(){↵
|
16 | return getPropertyAsString(ERROR);↵ | | 21 | return getPropertyAsString(ERRORCODE);↵
|
17 | }↵ | | 22 | }↵
|
18 | ↵ | | 23 | ↵
|
19 | /**↵ | | 24 | /**↵
|
20 | * provide a descriptive error for the test method. For↵ | | 25 | * provide a↵
|
21 | * a description of the difference between failure and↵ | | |
|
22 | * error, please refer to the following url↵ | | |
|
23 | * http://junit.sourceforge.net/doc/faq/faq.htm#↵ | | 26 | n unique error code for when the test↵
|
24 | tests_9↵ | | 27 | * does not pass the assert test.↵
|
25 | * @param error↵ | | 28 | * @param code↵
|
26 | */↵ | | 29 | */↵
|
27 | public void setError(String error){↵ | | 30 | public void setErrorCode(String code){↵
|
28 | setProperty(ERROR,error);↵ | | 31 | setProperty(ERRORCODE,code);↵
|
29 | } | | 32 | }
|