atg.test.configuration
Class RepositoryConfiguration

java.lang.Object
  extended by 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
           
 
Constructor Summary
RepositoryConfiguration()
           
 
Method Summary
 void createFakeXADataSource(java.io.File root, java.util.Map<java.lang.String,java.lang.String> jdbcSettings)
           
 void createPropertiesByConfigurationLocation(java.io.File root)
           
 void createRepositoryConfiguration(java.io.File root, java.lang.String repositoryPath, boolean droptables, boolean createTables, java.lang.String... definitionFiles)
           
 void setDebug(boolean isDebug)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isDebug

protected java.lang.String isDebug

settings

protected final java.util.Map<java.lang.String,java.lang.String> settings
Constructor Detail

RepositoryConfiguration

public RepositoryConfiguration()
Method Detail

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 alone
createTables - 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 created
definitionFiles -
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.