// "jdbc:derby:" + TEST_DIR + "/db;create=true",
// "sa", "sa");
}
private void doTestDatabase(String driver, String url, String user, String password) throws Exception {
ConnectionFactory pool = new ConnectionFactory();
try {
DbDataStore store = new DbDataStore();
store.setConnectionFactory(pool);
ids.clear();
store.setDriver(driver);
store.setUrl(url);
store.setUser(user);
store.setPassword(password);
store.init("target/test-db-datastore");
store.setMinRecordLength(0);
doTest(store);
} finally {
pool.close();
}
}