|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junitx.util.XMLPropertyManager
The XMLPropertyManager
class represents a persistent set of
properties loaded from an XML property file.
The location of the property file loaded by the XMLPropertyManager
class is defined by the XMLPropertyManager.file
JVM environment
variable. For example, to initialize the XMLPropertyManager
with a file located at c:\project\props.xml
:
java -DXMLPropertyManager.file=c:\project\props.xml junit.textui.TestRunner AllTests
<?xml version="1.0"?> <properties> <property name="propname" value="propvalue" /> </properties>
Method Summary | |
static java.lang.String |
getProperty(java.lang.String key)
Searches for the property with the specified key in this property list. |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Searches for the property with the specified key in this property list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String getProperty(java.lang.String key)
null
if the property is not found.
key
- the hashtable key.
getProperty(String, String)
public static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- the hashtable key.defaultValue
- a default value.
|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |