|
|
@ -112,12 +112,16 @@ public class MobileFeatureDAOTestSuite {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void createH2DB(TestDBConfiguration testDBConf) throws Exception {
|
|
|
|
private void createH2DB(TestDBConfiguration testDBConf) throws Exception {
|
|
|
|
Class.forName(testDBConf.getDriverClassName());
|
|
|
|
try {
|
|
|
|
conn = DriverManager.getConnection(testDBConf.getConnectionURL());
|
|
|
|
Class.forName(testDBConf.getDriverClassName());
|
|
|
|
stmt = conn.createStatement();
|
|
|
|
conn = DriverManager.getConnection(testDBConf.getConnectionURL());
|
|
|
|
stmt.executeUpdate("RUNSCRIPT FROM './src/test/resources/sql/CreateH2TestDB.sql'");
|
|
|
|
stmt = conn.createStatement();
|
|
|
|
stmt.close();
|
|
|
|
stmt.executeUpdate("RUNSCRIPT FROM './src/test/resources/sql/CreateH2TestDB.sql'");
|
|
|
|
conn.close();
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
stmt.close();
|
|
|
|
|
|
|
|
conn.close();
|
|
|
|
|
|
|
|
TestUtils.cleanupResources(conn, stmt, null);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|