org.teiid.test.framework
Class ConfigPropertyLoader

java.lang.Object
  extended by org.teiid.test.framework.ConfigPropertyLoader

public class ConfigPropertyLoader
extends java.lang.Object

The ConfigProperteryLoader will load the configuration properties to be used by a test. Unless a different configuraton file is specified, subsequent loading of the configuration fill will not occur. However, overrides that are applied per test

Author:
vanhalbert

Field Summary
static java.lang.String DEFAULT_CONFIG_FILE_NAME
          The default config file to use when #CONFIG_FILE system property isn't set
 
Method Summary
static ConfigPropertyLoader getInstance()
           
 java.util.Map<java.lang.String,java.lang.String> getModelAssignedDatabaseTypes()
           
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 boolean isDataStoreDisabled()
          In certain testcases, the data that being provided is already preconfigured and should not be touched by the DataStore processing.
static void main(java.lang.String[] args)
           
static void reset()
          Called after each test to reset any per test settings.
 void setModelAssignedToDatabaseType(java.lang.String modelname, java.lang.String dbtype)
           
 void setProperties(java.util.Properties props)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIG_FILE_NAME

public static final java.lang.String DEFAULT_CONFIG_FILE_NAME
The default config file to use when #CONFIG_FILE system property isn't set

See Also:
Constant Field Values
Method Detail

getInstance

public static ConfigPropertyLoader getInstance()

reset

public static void reset()
Called after each test to reset any per test settings.


getProperty

public java.lang.String getProperty(java.lang.String key)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

setProperties

public void setProperties(java.util.Properties props)

getProperties

public java.util.Properties getProperties()

isDataStoreDisabled

public boolean isDataStoreDisabled()
In certain testcases, the data that being provided is already preconfigured and should not be touched by the DataStore processing.

Returns:
boolean

getModelAssignedDatabaseTypes

public java.util.Map<java.lang.String,java.lang.String> getModelAssignedDatabaseTypes()

setModelAssignedToDatabaseType

public void setModelAssignedToDatabaseType(java.lang.String modelname,
                                           java.lang.String dbtype)

main

public static void main(java.lang.String[] args)


Copyright © 2011. All Rights Reserved.