use of com.alibaba.druid.test.util.OracleMockDriverJdbc3 in project druid by alibaba.
the class TestOracleWallJdbc3 method setUp.
protected void setUp() throws Exception {
dataSource = new DruidDataSource();
WallFilter wall = new WallFilter();
wall.setConfig(new WallConfig());
wall.getConfig().setWrapAllow(true);
dataSource.setOracle(true);
dataSource.setUrl("jdbc:mock:xxx");
dataSource.setDriver(new OracleMockDriverJdbc3());
dataSource.setPoolPreparedStatements(true);
dataSource.setConnectionProperties("defaultRowPrefetch=50");
dataSource.setFilters("stat");
dataSource.getProxyFilters().add(wall);
dataSource.setDbType("oracle");
// dataSource.setFilters("log4j");
}
use of com.alibaba.druid.test.util.OracleMockDriverJdbc3 in project druid by alibaba.
the class TestOracleWrap2 method setUp.
protected void setUp() throws Exception {
dataSource = new DruidDataSource();
dataSource.setOracle(true);
dataSource.setUrl("jdbc:mock:xxx");
dataSource.setDriver(new OracleMockDriverJdbc3());
dataSource.setPoolPreparedStatements(true);
dataSource.setConnectionProperties("defaultRowPrefetch=50");
dataSource.setDbType("oracle");
// dataSource.setFilters("log4j");
}
Aggregations