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.
This commit is contained in:
Andy Wilkinson
2014-12-11 11:29:28 +00:00
committed by Michael Minella
parent 92e551e05d
commit 3e5e871163

View File

@@ -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();
}