use of com.github.springtestdbunit.bean.DatabaseConfigBean in project thingsboard by thingsboard.
the class JpaDbunitTestConfig method dbUnitDatabaseConnection.
@Bean(name = "dbUnitDatabaseConnection")
public DatabaseDataSourceConnectionFactoryBean dbUnitDatabaseConnection() throws SQLException, DatabaseUnitException, IOException {
DatabaseDataSourceConnectionFactoryBean databaseDataSourceConnectionFactoryBean = new DatabaseDataSourceConnectionFactoryBean();
databaseDataSourceConnectionFactoryBean.setDatabaseConfig(databaseConfigBean());
databaseDataSourceConnectionFactoryBean.setDataSource(dataSource);
return databaseDataSourceConnectionFactoryBean;
}
use of com.github.springtestdbunit.bean.DatabaseConfigBean in project thingsboard by thingsboard.
the class JpaDbunitTestConfig method databaseConfigBean.
@Bean
public DatabaseConfigBean databaseConfigBean() {
DatabaseConfigBean databaseConfigBean = new DatabaseConfigBean();
databaseConfigBean.setDatatypeFactory(new HsqldbDataTypeFactory());
return databaseConfigBean;
}
Aggregations