1 | String getMethod(){↵ | | 1 | String getSuccess(){↵
|
2 | return getPropertyAsString(METHOD);↵ | | 2 | return getPropertyAsString(SUCCESS);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | ↵
|
5 | * Method should add the JUnit testXXX method to the list at↵ | | 5 | ↵
|
6 | * the end, since the sequence matters.↵ | | 6 | /**↵
|
| | | 7 | * set the success message↵
|
7 | * @param methodName↵ | | 8 | * @param success↵
|
8 | */↵ | | 9 | */↵
|
9 | public void setMethod(String methodName){↵ | | 10 | public void setSuccess(String success){↵
|
10 | setProperty(METHOD,methodName);↵ | | 11 | setProperty(SUCCESS,success);↵
|
11 | }↵ | | 12 | }↵
|
12 | ↵ | | 13 | ↵
|
13 | /**↵ | | 14 | /**↵
|
14 | * get the success message↵ | | 15 | * get the success code defined by the user↵
|
15 | */↵ | | 16 | */↵
|
16 | public String getSuccess(){↵ | | 17 | public String getSuccessCode(){↵
|
17 | return getPropertyAsString(SUCCESS);↵ | | 18 | return getPropertyAsString(SUCCESSCODE);↵
|
18 | }↵ | | 19 | }↵
|
19 | ↵ | | |
|
20 | /**↵ | | 20 | /**↵
|
21 | * set the success message↵ | | 21 | * set the succes code. the success code should↵
|
| | | 22 | * be unique.↵
|
22 | * @param success↵ | | 23 | * @param code↵
|
23 | */↵ | | 24 | */↵
|
24 | public void setSuccess(String success){↵ | | 25 | public void setSuccessCode(String code){↵
|
25 | setProperty(SUCCESS,success);↵ | | 26 | setProperty(SUCCESSCODE,code);↵
|
26 | | | 27 |
|