atg.test.util
Class RepositoryManager
java.lang.Object
atg.test.util.RepositoryManager
public class RepositoryManager
- 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.
TODO: re-enable versioned repositories
- Author:
- robert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryManager
public RepositoryManager()
initializeMinimalRepositoryConfiguration
public void initializeMinimalRepositoryConfiguration(java.io.File configRoot,
java.lang.String repositoryPath,
java.util.Map<java.lang.String,java.lang.String> settings,
boolean dropTables,
boolean isDebug,
java.lang.String... definitionFiles)
throws java.sql.SQLException,
java.io.IOException
- Parameters:
configRoot
- repositoryPath
- The the repository to be tested, specified as nucleus component
path.settings
- A Properties
instance with the following values (in this example
the properties are geared towards an mysql database):
final Properties properties = new Properties();
properties.put("driver", "com.mysql.jdbc.Driver");
properties.put("url", "jdbc:mysql://localhost:3306/someDb");
properties.put("user", "someUserName");
properties.put("password", "somePassword");
dropTables
- If true
then existing tables will be dropped and
re-created, if set to false
the existing tables
will be used.isDebug
- Enables or disables debugging.definitionFiles
- One or more needed repository definition files.
- Throws:
java.sql.SQLException
java.io.IOException
shutdownInMemoryDbAndCloseConnections
public void shutdownInMemoryDbAndCloseConnections()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Copyright © 2009. All Rights Reserved.