Package com.alibaba.druid.stat

Examples of com.alibaba.druid.stat.JdbcSqlStat.reset()


        conn.close();

        Assert.assertEquals(2, sqlStat.getReaderOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getReaderOpenCount());
    }

    public void test_stat_1() throws Exception {
        Connection conn = dataSource.getConnection();
View Full Code Here


        conn.close();

        Assert.assertEquals(3, sqlStat.getReaderOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getReaderOpenCount());
    }
}
View Full Code Here

        conn.close();

        Assert.assertEquals(2, sqlStat.getClobOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getClobOpenCount());
    }

    public void test_stat_1() throws Exception {
        Connection conn = dataSource.getConnection();
View Full Code Here

        conn.close();

        Assert.assertEquals(3, sqlStat.getClobOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getClobOpenCount());
    }
   
    public void test_stat_2() throws Exception {
        Connection conn = dataSource.getConnection();
View Full Code Here

        conn.close();

        Assert.assertEquals(4, sqlStat.getClobOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getClobOpenCount());
    }
   
    public void test_stat_4() throws Exception {
        Connection conn = dataSource.getConnection();
View Full Code Here

        conn.close();

        Assert.assertEquals(5, sqlStat.getClobOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getClobOpenCount());
    }
}
View Full Code Here

        conn.close();

        Assert.assertEquals(0, sqlStat.getReadStringLength());
        Assert.assertEquals(6, sqlStat.getReadBytesLength());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getReadStringLength());
        Assert.assertEquals(0, sqlStat.getReadBytesLength());
    }

    public void test_stat_1() throws Exception {
View Full Code Here

        conn.close();

        Assert.assertEquals(0, sqlStat.getReadStringLength());
        Assert.assertEquals(7, sqlStat.getReadBytesLength());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getReadStringLength());
        Assert.assertEquals(0, sqlStat.getReadBytesLength());
    }
}
View Full Code Here

        conn.close();

        Assert.assertEquals(2, sqlStat.getBlobOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getBlobOpenCount());
    }

    public void test_stat_1() throws Exception {
        Connection conn = dataSource.getConnection();
View Full Code Here

        conn.close();

        Assert.assertEquals(3, sqlStat.getBlobOpenCount());

        sqlStat.reset();
        Assert.assertEquals(0, sqlStat.getBlobOpenCount());
    }

    public void test_stat_2() throws Exception {
        Connection conn = dataSource.getConnection();
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.