Package com.alibaba.druid.pool

Examples of com.alibaba.druid.pool.DruidPooledConnection


            Assert.assertNotNull(error);
        }
    }

    public void test_error_1() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.setPoolPreparedStatements(false);
    }
View Full Code Here


        dataSource.setPoolPreparedStatements(false);
    }

    public void test_change_maxWait() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);
        conn.close();
        dataSource.setMaxWait(1);
    }
View Full Code Here

        conn.close();
        dataSource.setMaxWait(1);
    }

    public void test_change_minIdle() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.setMinIdle(1);
    }
View Full Code Here

        dataSource.setMinIdle(1);
    }

    @SuppressWarnings("deprecation")
    public void test_error_4() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.setMaxIdle(1);
    }
View Full Code Here

        dataSource.setMaxIdle(1);
    }

    public void test_error_5() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.setInitialSize(dataSource.getInitialSize());

        {
            Exception error = null;
View Full Code Here

            Assert.assertNotNull(error);
        }
    }

    public void test_error_6() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.setMaxActive(1);
    }
View Full Code Here

        dataSource.setMaxActive(1);
    }

    public void test_error_7() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.setPassword(dataSource.getPassword());
        dataSource.setPassword("xx");
    }
View Full Code Here

        dataSource.setPassword(dataSource.getPassword());
        dataSource.setPassword("xx");
    }

    public void test_change_connectProperties() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.setConnectProperties(new Properties());
    }
View Full Code Here

        dataSource.setConnectProperties(new Properties());
    }

    public void test_change_connectProperties_2() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.setConnectionProperties("x=12;;");
    }
View Full Code Here

        dataSource.setConnectionProperties("x=12;;");
    }

    public void test_getValidConnectionCheckerClassName() throws Exception {
        DruidPooledConnection conn = dataSource.getConnection().unwrap(DruidPooledConnection.class);

        conn.close();

        dataSource.getValidConnectionCheckerClassName();
    }
View Full Code Here

TOP

Related Classes of com.alibaba.druid.pool.DruidPooledConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.