eliminated dependency on jdbc core

This commit is contained in:
Keith Donald
2009-05-06 07:36:24 +00:00
parent c0c9501005
commit bc9ad5685d
11 changed files with 470 additions and 135 deletions

View File

@@ -4,10 +4,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.junit.Test;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabase;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder;
public class EmbeddedDatabaseBuilderTests {
@@ -33,8 +30,7 @@ public class EmbeddedDatabaseBuilderTests {
try {
new EmbeddedDatabaseBuilder().script("bogus.sql").build();
fail("Should have failed");
} catch (DataAccessException e) {
} catch (CannotReadScriptException e) {
}
}

View File

@@ -2,12 +2,9 @@ package org.springframework.jdbc.datasource.embedded;
import static org.junit.Assert.assertTrue;
import java.sql.Connection;
import org.junit.Test;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.embedded.DatabasePopulator;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabase;
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory;
public class EmbeddedDatabaseFactoryTests {
@@ -26,7 +23,7 @@ public class EmbeddedDatabaseFactoryTests {
private boolean populateCalled;
public void populate(JdbcTemplate template) throws DataAccessException {
public void populate(Connection connection) {
this.populateCalled = true;
}