1 | String getFailure(){↵ | | 1 | String getErrorCode(){↵
|
2 | return getPropertyAsString(FAILURE);↵ | | 2 | return getPropertyAsString(ERRORCODE);↵
|
3 | }↵ | | 3 | }↵
|
| | | 4 | ↵
|
4 | /**↵ | | 5 | /**↵
|
5 | * set the failure message↵ | | 6 | * provide an unique error code for when the test↵
|
| | | 7 | * does not pass the assert test.↵
|
6 | * @param fail↵ | | 8 | * @param code↵
|
7 | */↵ | | 9 | */↵
|
8 | public void setFailure(String fail){↵ | | 10 | public void setErrorCode(String code){↵
|
9 | setProperty(FAILURE,fail);↵ | | 11 | setProperty(ERRORCODE,code);↵
|
10 | }↵ | | 12 | }↵
|
11 | ↵ | | 13 | ↵
|
12 | /**↵ | | 14 | /**↵
|
13 | * The failure code is used by other components↵ | | 15 | * return the comma separated string for the filter↵
|
14 | */↵ | | 16 | */↵
|
15 | public String getFailureCode(){↵ | | 17 | public String getFilterString(){↵
|
16 | return getPropertyAsString(FAILURECODE);↵ | | 18 | return getPropertyAsString(FILTER);↵
|
17 | }↵ | | 19 | }↵
|
18 | ↵ | | 20 | ↵
|
19 | /**↵ | | 21 | /**↵
|
20 | * Provide some unique code to denote a type of failure↵ | | 22 | * set the filter string in comman separated format↵
|
21 | * @param code↵ | | 23 | * @param text↵
|
22 | */↵ | | 24 | */↵
|
23 | public void setFailureCode(String code){↵ | | 25 | public void setFilterString(String text){↵
|
24 | setProperty(FAILURECODE,code);↵ | | 26 | setProperty(FILTER,text);↵
|
25 | | | 27 |
|