|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cocome.tradingsystem.systests.TestManager
public class TestManager
This is a factory for the test driver. The information which driver should be used is taken from a property file. The actual test driver is then created via reflection.
Field Summary | |
---|---|
private static TestManager |
instance
The only instance of this singleton. |
private static java.lang.String[] |
pathPrefixes
The search path for the property file. |
private java.util.Properties |
properties
The contents of the properties file used to control system tests. |
private static java.lang.String |
propertiesFile
The name of the file containing the properties controlling system tests. |
private java.lang.Class<ITestDriver> |
testDriverClass
The class of the test driver used. |
private static java.lang.String |
testDriverClassKey
The name of the key giving the class name for the test driver. |
Constructor Summary | |
---|---|
private |
TestManager()
Creates a new test manager class. |
Method Summary | |
---|---|
ITestDriver |
createTestDriver()
Returns a newly created test driver. |
static TestManager |
getInstance()
Returns the single instance of this class. |
private void |
loadClass()
Loads the class for the test driver later used to construct test driver instances. |
private void |
loadProperties()
Locate and load the properties file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String propertiesFile
private static final java.lang.String[] pathPrefixes
private static final java.lang.String testDriverClassKey
private static TestManager instance
private final java.util.Properties properties
private java.lang.Class<ITestDriver> testDriverClass
Constructor Detail |
---|
private TestManager() throws TestManagerException
TestManagerException
Method Detail |
---|
private void loadClass() throws TestManagerException
TestManagerException
private void loadProperties() throws TestManagerException
TestManagerException
public ITestDriver createTestDriver() throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.IllegalAccessException
public static TestManager getInstance() throws TestManagerException
TestManagerException
|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |