|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.test.OpenCmsTestProperties
public final class OpenCmsTestProperties
Reads and manages the test.properties file.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
The log object for this class. |
static String |
PROP_DB_PRODUCT
Property / Environmant name for "db.product". |
static String |
PROP_TEST_DATA_PATH
Property / Environmant name for "test.data.path". |
static String |
PROP_TEST_WEBAPP_PATH
Property / Environmant name for "test.webapp.path". |
Method Summary | |
---|---|
String |
getBasePath()
|
CmsParameterConfiguration |
getConfiguration()
|
String |
getDbProduct()
|
static OpenCmsTestProperties |
getInstance()
|
static String |
getResourcePathFromClassloader(String fileName)
Returns the absolute path name for the given relative path name if it was found by the context Classloader of the current Thread. |
String |
getTestDataPath()
|
String |
getTestWebappPath()
|
static void |
initialize(String basePath)
Reads property file test.properties and fills singleton members. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
public static final String PROP_DB_PRODUCT
public static final String PROP_TEST_DATA_PATH
public static final String PROP_TEST_WEBAPP_PATH
Method Detail |
---|
public static OpenCmsTestProperties getInstance()
public static String getResourcePathFromClassloader(String fileName)
The argument has to denote a resource within the Classloaders
scope. A
implementation for example would
try to match a given path name to some resource under it's URL
entries.URLClassLoader
As the result is internally obtained as an URL it is reduced to
a file path by the call to
. Therefore
the returned String will start with a '/' (no problem for java.io).URL.getFile()
fileName
- the filename to return the path from the Classloader for
Thread.getContextClassLoader()
public static void initialize(String basePath)
basePath
- the path where to find the test.properties filepublic String getBasePath()
public CmsParameterConfiguration getConfiguration()
public String getDbProduct()
public String getTestDataPath()
public String getTestWebappPath()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |