refactor DruidDataSource

This commit is contained in:
wenshao
2012-08-17 10:51:57 +08:00
parent e837802844
commit c19cae3dd4
2 changed files with 21 additions and 13 deletions
@@ -25,6 +25,7 @@ public class TestOraclePrefetch extends TestCase {
dataSource.setDriver(new OracleMockDriver());
dataSource.setPoolPreparedStatements(true);
dataSource.setConnectionProperties("defaultRowPrefetch=50");
// dataSource.setFilters("log4j");
}
protected void tearDown() throws Exception {
@@ -92,6 +93,8 @@ public class TestOraclePrefetch extends TestCase {
conn.close();
}
Assert.assertEquals(1, dataSource.getCachedPreparedStatementCount());
}
}