1 | String getFailure(){↵ | | 1 | String getMethod(){↵
|
2 | return getPropertyAsString(FAILURE);↵ | | 2 | return getPropertyAsString(METHOD);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * set the failure message↵ | | 5 | * Method should add the JUnit testXXX method to the list at↵
|
| | | 6 | * the end, since the sequence matters.↵
|
6 | * @param fail↵ | | 7 | * @param methodName↵
|
7 | */↵ | | 8 | */↵
|
8 | public void setFailure(String fail){↵ | | 9 | public void setMethod(String methodName){↵
|
9 | setProperty(FAILURE,fail);↵ | | 10 | setProperty(METHOD,methodName);↵
|
10 | }↵ | | 11 | }↵
|
11 | ↵ | | 12 | ↵
|
12 | /**↵ | | 13 | /**↵
|
13 | * The failure code is used by other components↵ | | 14 | * get the success message↵
|
14 | */↵ | | 15 | */↵
|
15 | public String getFailureCode(){↵ | | 16 | public String getSuccess(){↵
|
16 | return getPropertyAsString(FAILURECODE);↵ | | 17 | return getPropertyAsString(SUCCESS);↵
|
17 | | | 18 |
|