1 | String getError(){↵ | | 1 | String getQueueConnectionFactory() {↵
|
2 | return getPropertyAsString(ERROR);↵ | | 2 | return getPropertyAsString(↵
|
3 | }↵ | | |
|
4 | ↵ | | |
|
5 | /**↵ | | |
|
6 | * provide a descriptive error for the test method. For↵ | | |
|
7 | * a description of the difference between failure and↵ | | |
|
8 | * error, please refer to the following url↵ | | |
|
9 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵ | | |
|
10 | * @param error↵ | | |
|
11 | */↵ | | |
|
12 | public void setErr↵ | | 3 | QUEUE_CONNECTION_FACTORY_JNDI);↵
|
| | | 4 | }↵
|
|
13 | or(String error){↵ | | 5 | public void setQueueConnectionFactory(String ↵
|
14 | setProperty(ERROR,error);↵ | | |
|
15 | }↵ | | |
|
16 | ↵ | | |
|
17 | /**↵ | | |
|
18 | * return the error code for the test method. it should↵ | | |
|
19 | * be an unique error code.↵ | | |
|
20 | */↵ | | |
|
21 | ↵ | | 6 | qcf) {↵
|
| | | 7 | setProperty(QUEUE_CONNECTION_FACTORY_JNDI, qcf);↵
|
| | | 8 | }↵
|
|
22 | public String getErrorCode(){↵ | | 9 | public String getSendQueue() {↵
|
23 | return getPropertyAsString(ERRORCODE);↵ | | 10 | return getPropertyAsString(↵
|
24 | }↵ | | |
|
25 | ↵ | | |
|
26 | /**↵ | | |
|
27 | * provide an unique error code for when the test↵ | | |
|
28 | * does not pass the assert test.↵ | | |
|
29 | * @param code↵ | | |
|
30 | */↵ | | |
|
31 | ↵ | | 11 | SEND_QUEUE);↵
|
| | | 12 | }↵
|
|
32 | public void setErrorCode(String code){↵ | | 13 | public void setSendQueue(String name) {↵
|
33 | setProperty(ERRORCODE,code);↵ | | 14 | setProperty(↵
|
34 | }↵ | | |
|
35 | ↵ | | |
|
36 | /**↵ | | |
|
37 | * return the comma separated string for the filter↵ | | |
|
38 | */↵ | | |
|
39 | ↵ | | 15 | SEND_QUEUE, name);↵
|
| | | 16 | }↵
|
|
40 | public String getFilterString(){↵ | | 17 | public String getReceiveQueue() {↵
|
41 | return getPropertyAsString(FILTER);↵ | | 18 | return getPropertyAsString(↵
|
42 | ↵ | | 19 | RECEIVE_QUEUE);↵
|
43 | } | | 20 | }
|