From 3e5e8711635c19ac0727d2e761ec2ca255990644 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 11 Dec 2014 11:29:28 +0000 Subject: [PATCH] Make use of current working dir explicit for compatibility with H2 1.4 H2 1.4 requires that file paths that are relative to the current working directory declare this explicitly, i.e. the path file:/some-dir must now be file:./some-dir. This commit updates DatabaseTypeIntegrationTests to meet the above-described requirement, thereby allowing the tests to pass when run against H2 1.4.x. --- .../batch/support/DatabaseTypeIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 38e9c4128..4baa0c402 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.Driver.class, - "jdbc:h2:file:build/data/sample"); + "jdbc:h2:file:./build/data/sample"); assertEquals(DatabaseType.H2, DatabaseType.fromMetaData(dataSource)); dataSource.getConnection(); }