1 | String getValue() {↵ | | 1 | String getError(){↵
|
2 | return getPropertyAsString(VALUE);↵ | | 2 | return getPropertyAsString(↵
|
3 | }↵ | | |
|
|
4 | /**↵ | | |
|
5 | * set the va↵ | | 3 | ERROR);↵
|
| | | 4 | }↵
|
| | | 5 | ↵
|
| | | 6 | /**↵
|
| | | 7 | * provide a descriptive error for the test method. For↵
|
6 | lue for this object.↵ | | 8 | * a description of the difference between failure ↵
|
7 | ↵ | | 9 | and↵
|
| | | 10 | * error, please refer to the following url↵
|
| | | 11 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵
|
| | | 12 | * @param error↵
|
8 | */↵ | | 13 | */↵
|
9 | public synchronized void setValue(String value) {↵ | | 14 | public void setError(String ↵
|
10 | this.setProperty(VALUE, value);↵ | | |
|
11 | }↵ | | |
|
|
12 | ↵ | | 15 | error){↵
|
| | | 16 | setProperty(ERROR,error);↵
|
| | | 17 | }↵
|
| | | 18 | ↵
|
13 | /**↵ | | 19 | /**↵
|
14 | * get the domain for this object.↵ | | 20 | * return the ↵
|
15 | ↵ | | 21 | error code for the test method. it should↵
|
| | | 22 | * be an unique error code.↵
|
16 | */↵ | | 23 | */↵
|
17 | public synchronized String getDomain() {↵ | | 24 | public String getErrorCode(){↵
|
18 | return getPropertyAsString(DOMAIN);↵ | | 25 | return getPropertyAsString(↵
|
19 | }↵ | | |
|
|
20 | /**↵ | | |
|
21 | * set the domain for this object.↵ | | |
|
22 | ↵ | | 26 | ERRORCODE);↵
|
| | | 27 | }↵
|
| | | 28 | ↵
|
| | | 29 | /**↵
|
| | | 30 | * provide an unique error code for when the test↵
|
| | | 31 | * does not pass the assert test.↵
|
| | | 32 | * @param code↵
|
23 | */↵ | | 33 | */↵
|
24 | public synchronized void setDomain(String domain) {↵ | | 34 | public ↵
|
25 | setProperty(DOMAIN, domain);↵ | | |
|
26 | ↵ | | 35 | void setErrorCode(String code){↵
|
| | | 36 | setProperty(ERRORCODE,code);↵
|
27 | } | | 37 | }
|