Package pro.taskana.common.test.config
Class DataSourceGenerator
- java.lang.Object
-
- pro.taskana.common.test.config.DataSourceGenerator
-
public final class DataSourceGenerator extends Object
The DataSourceGenerator provides the proper DataSource for all Integration tests.If the file ${user.home}/taskanaUnitTest.properties is present, the DataSource is created according to the properties jdbcDriver, jdbcUrl, dbUserName and dbPassword. If any of these properties is missing, or the file doesn't exist, the default DataSource for H2 in-memory db is created.
Additionally the property schemaName can be defined. If that property is missing, or the file doesn't exist the schemaName TASKANA will be used.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSourcegetDataSource()static StringgetSchemaName()
-
-
-
Method Detail
-
getDataSource
public static DataSource getDataSource()
-
getSchemaName
public static String getSchemaName()
-
-