public class TestHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONFIGURATION_LOCATION |
protected static File |
dirDatabase |
protected static File |
targetdir |
protected static File |
testBasedir |
| Constructor and Description |
|---|
TestHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDbName(File testDirectory,
String dbname) |
static File |
getTestBasedir(Class<?> testClass) |
static File |
getTestWorkdir() |
static TopiaContext |
initTopiaContext(File testDirectory,
String dbname) |
static TopiaContext |
initTopiaContext(File testDirectory,
String dbPropertiesPath,
String dbname) |
static Properties |
initTopiaContextConfiguration(File testDirectory,
String dbname) |
static Properties |
initTopiaContextConfiguration(File testDirectory,
String dbPropertiesPath,
String dbname) |
static Properties |
loadHibernateConfiguration(String dbPropertiesPath) |
protected static File testBasedir
protected static File targetdir
protected static File dirDatabase
public static final String DEFAULT_CONFIGURATION_LOCATION
public static File getTestWorkdir()
public static File getTestBasedir(Class<?> testClass) throws IOException
IOExceptionpublic static TopiaContext initTopiaContext(File testDirectory, String dbname) throws IOException, TopiaNotFoundException
IOExceptionTopiaNotFoundExceptionpublic static TopiaContext initTopiaContext(File testDirectory, String dbPropertiesPath, String dbname) throws IOException, TopiaNotFoundException
IOExceptionTopiaNotFoundExceptionpublic static Properties initTopiaContextConfiguration(File testDirectory, String dbPropertiesPath, String dbname) throws IOException
IOExceptionpublic static Properties loadHibernateConfiguration(String dbPropertiesPath) throws IOException
IOExceptionpublic static Properties initTopiaContextConfiguration(File testDirectory, String dbname) throws IOException
IOExceptionCopyright © 2004–2015 CodeLutin. All rights reserved.