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