1 | String getReceiveQueue() {↵ | | 1 | String getFailureCode(){↵
|
2 | return getPropertyAsString(RECEIVE_QUEUE);↵ | | 2 | return getPropertyAsString(↵
|
3 | }↵ | | |
|
|
4 | ↵ | | 3 | FAILURECODE);↵
|
| | | 4 | }↵
|
| | | 5 | ↵
|
| | | 6 | /**↵
|
| | | 7 | * Provide some unique code to denote a type of failure↵
|
| | | 8 | * @param code↵
|
| | | 9 | */↵
|
5 | public void setReceiveQueue(String name) {↵ | | 10 | public void setFailureCode(String code){↵
|
6 | setProperty(RECEIVE_QUEUE, name);↵ | | 11 | setProperty(FAILURECODE,code);↵
|
7 | }↵ | | 12 | }↵
|
|
8 | ↵ | | 13 | /**↵
|
| | | 14 | * return the descriptive error for the test↵
|
| | | 15 | */↵
|
9 | public String getContent() {↵ | | 16 | public String getError(){↵
|
10 | return getPropertyAsString(XML_DATA);↵ | | 17 | return getPropertyAsString(↵
|
11 | }↵ | | |
|
|
12 | public void setContent(String content) {↵ | | |
|
13 | setProperty(XML_DATA, content);↵ | | |
|
14 | ↵ | | 18 | ERROR);↵
|
| | | 19 | }↵
|
| | | 20 | ↵
|
| | | 21 | /**↵
|
| | | 22 | * provide a descriptive error for the test method. For↵
|
| | | 23 | * a description of the difference between failure and↵
|
| | | 24 | * error, please refer to the following url↵
|
| | | 25 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵
|
| | | 26 | * @param error↵
|
| | | 27 | */↵
|
| | | 28 | public void setError(String error){↵
|
| | | 29 | setProperty(ERROR,error);↵
|
15 | } | | 30 | }
|