atg.test.configuration
Class RepositoryConfiguration
java.lang.Object
atg.test.configuration.RepositoryConfiguration
public final class RepositoryConfiguration
- extends java.lang.Object
This class is a merger of atg.test.util.DBUtils and
atg.adapter.gsa.GSATestUtils. The result will hopefully be a class that just
has the bare minimums needed for testing against an existing and/or in-memory
database.
This class will created all properties files needed for repository based
tests.
- Author:
- robert
Field Summary |
protected java.lang.String |
isDebug
|
protected java.util.Map<java.lang.String,java.lang.String> |
settings
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isDebug
protected java.lang.String isDebug
settings
protected final java.util.Map<java.lang.String,java.lang.String> settings
RepositoryConfiguration
public RepositoryConfiguration()
setDebug
public void setDebug(boolean isDebug)
createPropertiesByConfigurationLocation
public void createPropertiesByConfigurationLocation(java.io.File root)
throws java.io.IOException
- Parameters:
root
-
- Throws:
java.io.IOException
createFakeXADataSource
public void createFakeXADataSource(java.io.File root,
java.util.Map<java.lang.String,java.lang.String> jdbcSettings)
throws java.io.IOException
- Parameters:
root
- jdbcSettings
-
- Throws:
java.io.IOException
createRepositoryConfiguration
public void createRepositoryConfiguration(java.io.File root,
java.lang.String repositoryPath,
boolean droptables,
boolean createTables,
java.lang.String... definitionFiles)
throws java.io.IOException
- Parameters:
root
- repositoryPath
- droptables
- true
then existing tables will be dropped after
the test run, if false
then leave the existing
tables alonecreateTables
- if set to true
all non existing tables needed for
the current test run will be created, if set to
false
this class expects all needed tables for
this test run are already createddefinitionFiles
-
- Throws:
java.io.IOException
Copyright © 2009. All Rights Reserved.