Search in sources :

Example 51 with OracleMockDriver

use of com.alibaba.druid.test.util.OracleMockDriver in project druid by alibaba.

the class OracleExceptionSorterTest_stmt_getResultSet method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Example 52 with OracleMockDriver

use of com.alibaba.druid.test.util.OracleMockDriver in project druid by alibaba.

the class OracleExceptionSorterTest_stmt_setMaxRows method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Example 53 with OracleMockDriver

use of com.alibaba.druid.test.util.OracleMockDriver in project druid by alibaba.

the class OracleExceptionSorter_userDefined_1 method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Example 54 with OracleMockDriver

use of com.alibaba.druid.test.util.OracleMockDriver in project druid by alibaba.

the class OracleExceptionSorterTest_stmt_getResultSetHoldability method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Example 55 with OracleMockDriver

use of com.alibaba.druid.test.util.OracleMockDriver in project druid by alibaba.

the class OracleExceptionSorterTest_stmt_setEscapeProcessing method setUp.

protected void setUp() throws Exception {
    Assert.assertEquals(0, JdbcStatManager.getInstance().getSqlList().size());
    dataSource = new DruidDataSource();
    dataSource.setExceptionSorter(new OracleExceptionSorter());
    dataSource.setDriver(new OracleMockDriver());
    dataSource.setUrl("jdbc:mock:xxx");
    dataSource.setPoolPreparedStatements(true);
    dataSource.setMaxOpenPreparedStatements(100);
}
Also used : OracleExceptionSorter(com.alibaba.druid.pool.vendor.OracleExceptionSorter) DruidDataSource(com.alibaba.druid.pool.DruidDataSource) OracleMockDriver(com.alibaba.druid.test.util.OracleMockDriver)

Aggregations

DruidDataSource (com.alibaba.druid.pool.DruidDataSource)55 OracleMockDriver (com.alibaba.druid.test.util.OracleMockDriver)55 OracleExceptionSorter (com.alibaba.druid.pool.vendor.OracleExceptionSorter)50 WallConfig (com.alibaba.druid.wall.WallConfig)2 WallFilter (com.alibaba.druid.wall.WallFilter)2