eliminated dependency on jdbc core
This commit is contained in:
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user