use of org.jbpm.test.util.PoolingDataSource in project jbpm by kiegroup.
the class JbpmTestCase method setupPoolingDataSource.
@Override
protected PoolingDataSource setupPoolingDataSource() {
Properties dsProps = PersistenceUtil.getDatasourceProperties();
String jdbcUrl = dsProps.getProperty("url");
String driverClass = dsProps.getProperty("driverClassName");
// Setup the datasource
PoolingDataSource ds1 = PersistenceUtil.setupPoolingDataSource(dsProps, "jdbc/jbpm-ds", false);
if (driverClass.startsWith("org.h2")) {
ds1.getDriverProperties().setProperty("url", jdbcUrl);
}
ds1.init();
return ds1;
}
use of org.jbpm.test.util.PoolingDataSource in project jbpm by kiegroup.
the class TestUtil method setupPoolingDataSource.
public static PoolingDataSource setupPoolingDataSource() {
Properties dsProps = getDatasourceProperties();
PoolingDataSource pds = PersistenceUtil.setupPoolingDataSource(dsProps, "jdbc/jbpm-ds", false);
pds.init();
return pds;
}
Aggregations