1 | String getClassname()↵ | | 1 | String get↵
|
2 | {↵ | | |
|
3 | return getPropertyAsString(CLASSNAME);↵ | | |
|
4 | }↵ | | |
|
5 | ↵ | | |
|
6 | /**↵ | | |
|
7 | * Set the string label used to create an instance of the↵ | | |
|
8 | * test with the string constructor.↵ | | |
|
9 | * @param constr↵ | | |
|
10 | ↵ | | 2 | XmlPathLoc() {↵
|
| | | 3 | return getPropertyAsString(XML_PATH_LOC);↵
|
| | | 4 | }↵
|
|
| | | 5 | /**↵
|
| | | 6 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
| | | 7 | * string path.↵
|
| | | 8 | * ↵
|
| | | 9 | * @param filename↵
|
11 | */↵ | | 10 | */↵
|
12 | public void setConstructorString(String constr)↵ | | 11 | public void set↵
|
13 | {↵ | | |
|
14 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
15 | }↵ | | |
|
16 | ↵ | | |
|
17 | ↵ | | 12 | XmlFile(String filename) {↵
|
| | | 13 | setProperty(XML_DATA_FILE, filename);↵
|
| | | 14 | }↵
|
|
18 | /**↵ | | 15 | /**↵
|
19 | * get the string passed to the string constructor↵ | | 16 | * Get the ↵
|
20 | ↵ | | 17 | file location of the xml file.↵
|
| | | 18 | * ↵
|
| | | 19 | * @return String file path.↵
|
21 | */↵ | | 20 | */↵
|
22 | public String getConstructorString()↵ | | 21 | public String get↵
|
23 | {↵ | | |
|
24 | ↵ | | 22 | XmlFile() {↵
|
25 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 23 | return getPropertyAsString(↵
|
26 | | | 24 | XML_DATA_FILE);↵
|
| | | 25 |
|