1 | String getFailure(){↵ | | 1 | String getUser() {↵
|
2 | return getPropertyAsString(FAILURE);↵ | | 2 | return getPropertyAsString(USERNAME);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | |
|
5 | * set the failure message↵ | | |
|
6 | * @param fail↵ | | |
|
7 | */↵ | | |
|
8 | public void setFailure(String fail){↵ | | 4 | public synchronized void setUser(String ↵
|
9 | setProperty(FAILURE,fail);↵ | | |
|
10 | }↵ | | |
|
11 | ↵ | | |
|
12 | /**↵ | | |
|
13 | * The failure code is used by other components↵ | | |
|
14 | */↵ | | |
|
15 | public String getFailureCode↵ | | 5 | user) {↵
|
| | | 6 | setProperty(USERNAME, user);↵
|
| | | 7 | }↵
|
|
16 | (){↵ | | 8 | public synchronized String getPass() {↵
|
17 | return getPropertyAsString(FAILURECODE);↵ | | 9 | return getPropertyAsString(↵
|
18 | }↵ | | |
|
19 | ↵ | | |
|
20 | /**↵ | | |
|
21 | * Provide some unique code to denote a type of failure↵ | | |
|
22 | * @param code↵ | | |
|
23 | */↵ | | |
|
24 | public void setFailureCode(String code){↵ | | |
|
25 | setProperty(FAILURECODE,code);↵ | | |
|
26 | }↵ | | |
|
|
27 | /**↵ | | |
|
28 | * return the descriptive error for the test↵ | | |
|
29 | */↵ | | |
|
30 | public↵ | | 10 | PASSWORD);↵
|
| | | 11 | }↵
|
|
| | | 12 | public synchronized void setPass(String pass) {↵
|
| | | 13 | setProperty(PASSWORD, pass);↵
|
| | | 14 | }↵
|
|
31 | String getError(){↵ | | 15 | public synchronized String getDomain() {↵
|
32 | return getPropertyAsString(ERROR);↵ | | 16 | return getPropertyAsString(↵
|
33 | }↵ | | |
|
34 | ↵ | | |
|
35 | /**↵ | | |
|
36 | * provide a descriptive error for the test method. For↵ | | |
|
37 | * a description of the difference between failure and↵ | | |
|
38 | * error, please refer to the following url↵ | | |
|
39 | * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9↵ | | |
|
40 | * @param error↵ | | |
|
41 | */↵ | | |
|
42 | public↵ | | 17 | DOMAIN);↵
|
| | | 18 | }↵
|
|
43 | void setError(String error){↵ | | 19 | public synchronized void setDomain(String ↵
|
44 | setProperty(ERROR,error);↵ | | |
|
45 | ↵ | | 20 | domain) {↵
|
| | | 21 | setProperty(DOMAIN, domain);↵
|
46 | } | | 22 | }
|