|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jmscts.core.TestProperties
Helper class to provide access to properties defined in a jmscts.properties property file. This is read from the ${jmscts.home}/config directory.
Method Summary | |
static int |
getInt(java.lang.Class prefix,
java.lang.String name,
int defaultValue)
Returns the value of a property. |
static int |
getInt(java.lang.String name,
int defaultValue)
Returns the value of a property. |
static long |
getLong(java.lang.Class prefix,
java.lang.String name,
long defaultValue)
Returns the value of a property. |
static long |
getLong(java.lang.String name,
long defaultValue)
Returns the value of a property. |
static java.lang.String |
getString(java.lang.Class prefix,
java.lang.String name,
java.lang.String defaultValue)
Returns the value of a property. |
static java.lang.String |
getString(java.lang.String name,
java.lang.String defaultValue)
Returns the value of a property. |
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 getString(java.lang.Class prefix, java.lang.String name, java.lang.String defaultValue)
prefix
- the property name prefixname
- the property name suffixdefaultValue
- the value to use if no property existsdefaultValue
if
no property existspublic static java.lang.String getString(java.lang.String name, java.lang.String defaultValue)
name
- the property namedefaultValue
- the value to use if no property existsdefaultValue
if
no property existspublic static int getInt(java.lang.Class prefix, java.lang.String name, int defaultValue)
prefix
- the property name prefixname
- the property name suffixdefaultValue
- the value to use if no property existsdefaultValue
if
no property existspublic static int getInt(java.lang.String name, int defaultValue)
name
- the property namedefaultValue
- the value to use if no property existsdefaultValue
if
no property existspublic static long getLong(java.lang.Class prefix, java.lang.String name, long defaultValue)
prefix
- the property name prefixname
- the property name suffixdefaultValue
- the value to use if no property existsdefaultValue
if
no property existspublic static long getLong(java.lang.String name, long defaultValue)
name
- the property namedefaultValue
- the value to use if no property existsdefaultValue
if
no property exists
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |