Class 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 Detail

      • getDataSource

        public static DataSource getDataSource()
      • getSchemaName

        public static String getSchemaName()