Class TestConfigLoader<T extends TestEnvironment>
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T>
-
- edu.uiuc.ncsa.security.util.testing.TestConfigLoader<T>
-
- All Implemented Interfaces:
ConfigurationLoader<T>
,Version
,Serializable
public abstract class TestConfigLoader<T extends TestEnvironment> extends LoggingConfigLoader<T>
This loads a configuration of tests from a configuration file. This is not used in any other package and exists as a way to test configurations, naught else.Created by Jeff Gaynor
on 4/21/16 at 1:55 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.core.util.LoggingConfigLoader
LoggingConfigLoader.MyLoggerProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_FILE_KEY
The configuration file path and name is given as an argument on the command line.static String
CONFIG_NAME_KEY
static String
DATA_NAME_TAG
static String
DATA_TAG
static String
DATA_TYPE_TAG
static String
LIST_DATA_TYPE_TAG
static String
TEST_ENABLE_TAG
In the test file, testers can disable the test by specifying this value as true or false.static String
TEST_NAME_TAG
static String
TEST_TAG
static String
TESTS_TAG
-
Fields inherited from class edu.uiuc.ncsa.security.core.util.LoggingConfigLoader
cn, debugger, loggerProvider, myLogger
-
Fields inherited from interface edu.uiuc.ncsa.security.core.Version
VERSION_NUMBER
-
-
Constructor Summary
Constructors Constructor Description TestConfigLoader(org.apache.commons.configuration.tree.ConfigurationNode node)
TestConfigLoader(org.apache.commons.configuration.tree.ConfigurationNode node, MyLoggingFacade logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
createInstance()
Internal call to Create the service environment from the initialized state of this boot strapper.T
load()
load the configuration.static void
main(String[] args)
-
Methods inherited from class edu.uiuc.ncsa.security.core.util.LoggingConfigLoader
debug, getDebugger, getLoggerProvider, getMyLogger, getVersionString, info, setLoggerProvider, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.uiuc.ncsa.security.core.util.ConfigurationLoader
getConstants
-
-
-
-
Field Detail
-
TESTS_TAG
public static final String TESTS_TAG
- See Also:
- Constant Field Values
-
TEST_TAG
public static final String TEST_TAG
- See Also:
- Constant Field Values
-
TEST_NAME_TAG
public static final String TEST_NAME_TAG
- See Also:
- Constant Field Values
-
TEST_ENABLE_TAG
public static final String TEST_ENABLE_TAG
In the test file, testers can disable the test by specifying this value as true or false. The default is to run the test.- See Also:
- Constant Field Values
-
DATA_TAG
public static final String DATA_TAG
- See Also:
- Constant Field Values
-
DATA_TYPE_TAG
public static final String DATA_TYPE_TAG
- See Also:
- Constant Field Values
-
LIST_DATA_TYPE_TAG
public static final String LIST_DATA_TYPE_TAG
- See Also:
- Constant Field Values
-
DATA_NAME_TAG
public static final String DATA_NAME_TAG
- See Also:
- Constant Field Values
-
CONFIG_FILE_KEY
public static final String CONFIG_FILE_KEY
The configuration file path and name is given as an argument on the command line. This tells the system what the name of the parameter (given with the -D option) is.- See Also:
- Constant Field Values
-
CONFIG_NAME_KEY
public static final String CONFIG_NAME_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TestConfigLoader
public TestConfigLoader(org.apache.commons.configuration.tree.ConfigurationNode node)
-
TestConfigLoader
public TestConfigLoader(org.apache.commons.configuration.tree.ConfigurationNode node, MyLoggingFacade logger)
-
-
Method Detail
-
main
public static void main(String[] args)
-
load
public T load()
Description copied from interface:ConfigurationLoader
load the configuration. Normally the specifics of the configuration (e.g. a property file or an XML node) are loaded in the constructor first before this call. This is called automatically by the bootstrapper.- Returns:
-
createInstance
public T createInstance()
Description copied from interface:ConfigurationLoader
Internal call to Create the service environment from the initialized state of this boot strapper.- Returns:
-
-