public class UnitTestDatabaseUtil extends DatabaseUtil
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
NOT_ENCRYPTED
Constructor and Description |
---|
UnitTestDatabaseUtil() |
UnitTestDatabaseUtil(Credential cred,
String baseDir,
String bootPassword) |
Modifier and Type | Method and Description |
---|---|
void |
connectToExistingDB() |
void |
createNewDB() |
Credential |
findCredentialForResource(ResourceType resource) |
protected List<TableSpec> |
getTableSpecs() |
void |
insertCredentialForResource(ResourceType type,
Credential cred) |
static boolean |
isValid(String... texts) |
static String |
usage() |
clearDB, disconnect, ensureDatabaseExists, ensureTablesExist, execute, getDataSource, getOps, getSimpleJdbcTemplate, initializeDB
public UnitTestDatabaseUtil(Credential cred, String baseDir, String bootPassword) throws Exception
Exception
protected List<TableSpec> getTableSpecs()
getTableSpecs
in class DatabaseUtil
public void insertCredentialForResource(ResourceType type, Credential cred)
public Credential findCredentialForResource(ResourceType resource) throws Exception
Exception
public static boolean isValid(String... texts)
public static String usage()
Copyright © 2009–2014 DuraSpace. All rights reserved.