deleted old test data source factory

This commit is contained in:
Keith Donald
2009-04-22 21:29:47 +00:00
parent d896a53ca8
commit eb4d1bf20e
9 changed files with 1 additions and 435 deletions

View File

@@ -1,30 +0,0 @@
package org.springframework.test.jdbc;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
public class TestDataSourceFactoryTests {
TestDataSourceFactory factory = new TestDataSourceFactory();
@Test
public void testGetDataSource() {
StubTestDataSourcePopulator populator = new StubTestDataSourcePopulator();
factory.setDatabasePopulator(populator);
factory.getDataSource();
assertTrue(populator.populateCalled);
factory.destroyDataSource();
}
private static class StubTestDataSourcePopulator implements TestDatabasePopulator {
private boolean populateCalled;
public void populate(JdbcTemplate template) throws DataAccessException {
this.populateCalled = true;
}
}
}