From 159a29216eafb2a94ad4143f4bed679700f8eedf Mon Sep 17 00:00:00 2001 From: dsyer Date: Sat, 19 Dec 2009 21:11:03 +0000 Subject: [PATCH] Switch driver class for H2 (fixes build?) --- .../batch/support/DatabaseTypeIntegrationTests.java | 2 +- spring-batch-samples/src/main/resources/batch-h2.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/DatabaseTypeIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/DatabaseTypeIntegrationTests.java index ebdacbc7e..eca7e389f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/DatabaseTypeIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/DatabaseTypeIntegrationTests.java @@ -31,7 +31,7 @@ public class DatabaseTypeIntegrationTests { @Test public void testH2() throws Exception { - DataSource dataSource = DatabaseTypeTestUtils.getDataSource(org.h2.jdbc.JdbcConnection.class, "jdbc:h2:file:target/data/sample"); + DataSource dataSource = DatabaseTypeTestUtils.getDataSource(org.h2.Driver.class, "jdbc:h2:file:target/data/sample"); assertEquals(DatabaseType.H2, DatabaseType.fromMetaData(dataSource)); dataSource.getConnection(); } diff --git a/spring-batch-samples/src/main/resources/batch-h2.properties b/spring-batch-samples/src/main/resources/batch-h2.properties index 6052d1d21..a5cc63591 100644 --- a/spring-batch-samples/src/main/resources/batch-h2.properties +++ b/spring-batch-samples/src/main/resources/batch-h2.properties @@ -1,6 +1,6 @@ # Placeholders batch.* # for H2: -batch.jdbc.driver=org.h2.jdbc.JdbcConnection +batch.jdbc.driver=org.h2.Driver batch.jdbc.url=jdbc:h2:file:target/data/h2 batch.jdbc.user=sa batch.jdbc.password=