Examples of resetStat()


Examples of com.alibaba.druid.support.logging.Log.resetStat()

    public void test_oracle() throws Exception {
        Field field = DruidDataSource.class.getDeclaredField("LOG");
        field.setAccessible(true);
        Log log = (Log) field.get(null);
        log.resetStat();
       
        Connection conn = dataSource.getConnection();
       
        conn.close();
       
View Full Code Here

Examples of com.alibaba.druid.support.logging.Log.resetStat()

    public void test_connect() throws Exception {
        Field field = DruidDataSource.class.getDeclaredField("LOG");
        field.setAccessible(true);
        Log LOG = (Log) field.get(null);
       
        LOG.resetStat();
       
        Assert.assertEquals(0, LOG.getErrorCount());
       
        Connection conn = dataSource.getConnection();
        conn.close();
View Full Code Here

Examples of com.alibaba.druid.support.logging.Log.resetStat()

    public void test_connect() throws Exception {
        Field field = DruidDataSource.class.getDeclaredField("LOG");
        field.setAccessible(true);
        Log LOG = (Log) field.get(null);
       
        LOG.resetStat();
       
        Assert.assertEquals(0, LOG.getErrorCount());

        Connection conn = dataSource.getConnection();
        conn.close();
View Full Code Here

Examples of com.alibaba.druid.support.logging.Log.resetStat()

    public void test_connect() throws Exception {
        Field field = DruidDataSource.class.getDeclaredField("LOG");
        field.setAccessible(true);
        Log LOG = (Log) field.get(null);
       
        LOG.resetStat();
       
        Assert.assertEquals(0, LOG.getErrorCount());
        dataSource.init();
        Assert.assertEquals(0, LOG.getErrorCount());
    }
View Full Code Here

Examples of com.alibaba.druid.support.logging.Log.resetStat()

    public void test_oracle() throws Exception {
        Field field = DruidDataSource.class.getDeclaredField("LOG");
        field.setAccessible(true);
        Log log = (Log) field.get(null);
        log.resetStat();
       
        Connection conn = dataSource.getConnection();
       
        conn.close();
       
View Full Code Here

Examples of com.alibaba.druid.support.logging.Log.resetStat()

        Field field = DruidDataSource.class.getDeclaredField("LOG");
        dataSource.setValidationQuery("select 1");
        field.setAccessible(true);
        Log LOG = (Log) field.get(null);

        LOG.resetStat();

        Assert.assertEquals(0, LOG.getWarnCount());
        dataSource.init();
        Assert.assertEquals(0, LOG.getWarnCount());
    }
View Full Code Here

Examples of com.alibaba.druid.support.logging.Log.resetStat()

        Field field = DruidDataSource.class.getDeclaredField("LOG");
        field.setAccessible(true);
        Log LOG = (Log) field.get(null);

        LOG.resetStat();

        Assert.assertEquals(0, LOG.getWarnCount());
        dataSource.init();
        Assert.assertEquals(0, LOG.getWarnCount());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.