com.jcorporate.expresso.services.test
Class TestSystemInitializer
java.lang.Object
com.jcorporate.expresso.services.test.TestSystemInitializer
- public class TestSystemInitializer
- extends Object
This class loads the standard Expresso configuration upon startup. You
use this class by passing the following arguments to the Virtual Machine
system properties
junit.argv.webAppDir Where is the webapp directory located.
required
junit.argv.configDir The full path name of the configuration
directory.
required
junit.argv.testContext The name of the data context to perform the
destructive database tests to. optional if no testContext is specified then
the context name is set to "test" as the default context
expresso.logDir : Directory to write expresso related logfiles
log4j.configuration : Location of the log4j configuration file
- Version:
- $Revision: 1.11 $ $Date: 2004/11/17 20:48:22 $
- Author:
- Michael Rimov
|
Method Summary |
static String |
getLogDirectory()
|
static String |
getTestContext()
Get what the current testing context is. |
static void |
setUp()
Sets up the expresso configuration system so that all the unit tests
depending on the configuration and logging system can function. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestSystemInitializer
public TestSystemInitializer()
setUp
public static void setUp()
throws Exception
- Sets up the expresso configuration system so that all the unit tests
depending on the configuration and logging system can function.
- Throws:
Exception
getTestContext
public static String getTestContext()
- Get what the current testing context is.
- Returns:
- java.lang.String If no test context is specified by the system
property
junit.argv.testContext then the default name of
test will be used.
getLogDirectory
public static String getLogDirectory()
Please see www.jcorporate.com for information about new Expresso releases.