mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor DruidDataSource
This commit is contained in:
@@ -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());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user