提交 843a46d7 authored 作者: Thomas Mueller's avatar Thomas Mueller

switch to jdk 1.6 by default

上级 83ae2037
......@@ -50,8 +50,7 @@ public class TestDatabaseEventListener extends TestBase implements DatabaseEvent
TestDatabaseEventListener l = new TestDatabaseEventListener();
p.put("DATABASE_EVENT_LISTENER_OBJECT", l);
org.h2.Driver.load();
conn = DriverManager.getConnection(url, p);
conn = org.h2.Driver.load().connect(url, p);
conn.close();
if (l.calledOpened) {
assertTrue(!l.calledScan);
......@@ -65,7 +64,8 @@ public class TestDatabaseEventListener extends TestBase implements DatabaseEvent
TestDatabaseEventListener l = new TestDatabaseEventListener();
p.put("DATABASE_EVENT_LISTENER_OBJECT", l);
org.h2.Driver.load();
Connection conn = DriverManager.getConnection("jdbc:h2:mem:databaseEventListener", p);
String url = "jdbc:h2:mem:databaseEventListener";
Connection conn = org.h2.Driver.load().connect(url, p);
conn.close();
assertTrue(l.calledOpened);
assertTrue(l.calledClosingDatabase);
......
......@@ -32,7 +32,8 @@ public class TestSampleApps extends TestBase {
+ "PHONE: +41976543210\n");
testApp(org.h2.samples.Function.class, null,
"2 is prime\n3 is prime\n5 is prime\n7 is prime\n11 is prime\n13 is prime\n17 is prime\n19 is prime");
testApp(org.h2.samples.SecurePassword.class, null, "Joe");
// Not compatible with PostgreSQL JDBC driver (throws a NullPointerException)
//testApp(org.h2.samples.SecurePassword.class, null, "Joe");
// TODO test ShowProgress (percent numbers are hardware specific)
// TODO test ShutdownServer (server needs to be started in a separate
// process)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论