use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project camel by apache.
the class ElSqlConsumerDeleteTest method setUp.
@Before
public void setUp() throws Exception {
db = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).addScript("sql/createAndPopulateDatabase.sql").build();
jdbcTemplate = new JdbcTemplate(db);
super.setUp();
}
use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project camel by apache.
the class ElSqlDataSourceTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// this is the database we create with some initial data for our unit test
db = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).addScript("sql/createAndPopulateDatabase.sql").build();
jndi.bind("dataSource", db);
return jndi;
}
use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project camel by apache.
the class ElSqlProducerBatchTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// this is the database we create with some initial data for our unit test
db = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).addScript("sql/createAndPopulateDatabase.sql").build();
jndi.bind("dataSource", db);
return jndi;
}
use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project camel by apache.
the class ElSqlProducerBodySimpleTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// this is the database we create with some initial data for our unit test
db = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).addScript("sql/createAndPopulateDatabase.sql").build();
jndi.bind("dataSource", db);
return jndi;
}
use of org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder in project camel by apache.
the class ElSqlProducerStreamListTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// this is the database we create with some initial data for our unit test
db = new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.DERBY).addScript("sql/createAndPopulateDatabase.sql").build();
jndi.bind("dataSource", db);
return jndi;
}
Aggregations