1 | void setXmlData(String data) {↵ | | 1 | void set↵
|
2 | setProperty(XML_DATA, data);↵ | | |
|
3 | }↵ | | |
|
|
4 | public String getXmlData() {↵ | | |
|
5 | ↵ | | 2 | Classname(String classname)↵
|
| | | 3 | {↵
|
| | | 4 | setProperty(CLASSNAME, classname);↵
|
| | | 5 | }↵
|
|
| | | 6 | /**↵
|
| | | 7 | * Gets the Classname attribute of the JavaConfig object↵
|
| | | 8 | *↵
|
| | | 9 | * @return the Classname value↵
|
| | | 10 | */↵
|
| | | 11 | public String getClassname()↵
|
| | | 12 | {↵
|
6 | return getPropertyAsString(XML_DATA);↵ | | 13 | return getPropertyAsString(↵
|
7 | }↵ | | |
|
|
8 | /**↵ | | |
|
9 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵ | | |
|
10 | * string path↵ | | 14 | CLASSNAME);↵
|
| | | 15 | }↵
|
| | | 16 | ↵
|
| | | 17 | /**↵
|
| | | 18 | * Set the string label used to create an instance of the↵
|
11 | .↵ | | 19 | * test with the string constructor.↵
|
12 | *↵ | | 20 | *↵
|
13 | * @param filename↵ | | 21 | @param constr↵
|
14 | */↵ | | 22 | */↵
|
15 | public void setXmlFile(String filename) {↵ | | 23 | public void set↵
|
16 | setProperty(XML_DATA_FILE, filename↵ | | 24 | ConstructorString(String constr)↵
|
| | | 25 | {↵
|
17 | );↵ | | 26 | setProperty(CONSTRUCTORSTRING,constr);↵
|
18 | }↵ | | 27 | }↵
|
| | | 28 | ↵
|
19 | /**↵ | | 29 | /**↵
|
20 | * Get the file location of the xml file.↵ | | 30 | * get the ↵
|
21 | *↵ | | |
|
22 | * @return String file path.↵ | | 31 | string passed to the string constructor↵
|
23 | */↵ | | 32 | */↵
|
24 | public String getXmlFile()↵ | | 33 | public String getConstructorString()↵
|
25 | {↵ | | 34 | {↵
|
26 | return getPropertyAsString(XML_DATA_FILE);↵ | | 35 | return getPropertyAsString(↵
|
27 | }↵ | | |
|
|
28 | ↵ | | 36 | CONSTRUCTORSTRING);↵
|
| | | 37 | }↵
|
| | | 38 | ↵
|
| | | 39 | /**↵
|
| | | 40 | * Return the name of the method to test↵
|
| | | 41 | */↵
|
29 | public String getURLData() {↵ | | 42 | public String getMethod(){↵
|
30 | return getPropertyAsString(URL_DATA);↵ | | 43 | return getPropertyAsString(↵
|
31 | }↵ | | |
|
|
32 | ↵ | | 44 | METHOD);↵
|
| | | 45 | }↵
|
|
| | | 46 | /**↵
|
| | | 47 | * Method should add the JUnit testXXX method to the list at↵
|
| | | 48 | * the end, since the sequence matters.↵
|
| | | 49 | * @param methodName↵
|
| | | 50 | */↵
|
33 | public void setURLData(String url) {↵ | | 51 | public void setMethod(String ↵
|
34 | setProperty(URL_DATA, url);↵ | | |
|
35 | }↵ | | |
|
|
36 | ↵ | | 52 | methodName){↵
|
| | | 53 | setProperty(METHOD,methodName);↵
|
| | | 54 | }↵
|
| | | 55 | ↵
|
| | | 56 | /**↵
|
| | | 57 | * get the success message↵
|
| | | 58 | */↵
|
37 | public String getSOAPAction() {↵ | | 59 | public String getSuccess(){↵
|
38 | return getPropertyAsString(SOAP_ACTION);↵ | | 60 | return getPropertyAsString(S↵
|
39 | ↵ | | 61 | UCCESS);↵
|
40 | } | | 62 | }
|