1 | String getErrorCode(){↵ | | 1 | String getMethod(){↵
|
2 | return getPropertyAsString(ERRORCODE);↵ | | 2 | return getPropertyAsString(METHOD);↵
|
3 | }↵ | | 3 | }↵
|
4 | ↵ | | |
|
5 | /**↵ | | 4 | /**↵
|
6 | * provide an unique error code for when the test↵ | | 5 | * ↵
|
7 | * does not pass the assert test↵ | | 6 | Method should add the JUnit testXXX method to the list at↵
|
8 | .↵ | | 7 | * the end, since the sequence matters.↵
|
9 | * @param code↵ | | 8 | * @param methodName↵
|
10 | */↵ | | 9 | */↵
|
11 | public void setErrorCode(String code){↵ | | 10 | public void setMethod(String methodName){↵
|
12 | setProperty(ERRORCODE,code);↵ | | 11 | setProperty(METHOD,methodName);↵
|
13 | }↵ | | 12 | }↵
|
14 | ↵ | | 13 | ↵
|
15 | /**↵ | | 14 | /**↵
|
16 | * return the comma separated string for the filter↵ | | 15 | * get the success message↵
|
17 | */↵ | | 16 | */↵
|
18 | public String getFilterString(){↵ | | 17 | public String getSuccess(){↵
|
19 | return getPropertyAsString(FILTER);↵ | | 18 | return getPropertyAsString(SUCCESS);↵
|
20 | }↵ | | 19 | }↵
|
21 | ↵ | | 20 | ↵
|
22 | /**↵ | | 21 | /**↵
|
23 | * set the filter string in comman separated format↵ | | 22 | * set the success message↵
|
24 | * @param text↵ | | 23 | * @param success↵
|
25 | */↵ | | 24 | */↵
|
26 | public void setFilterString(String text){↵ | | 25 | public void setSuccess(String success){↵
|
27 | setProperty(FILTER,text);↵ | | 26 | setProperty(SUCCESS,success);↵
|
28 | } | | 27 | }
|