Search in sources :

Example 1 with JdbcConnectionStat

use of com.alibaba.druid.stat.JdbcConnectionStat in project druid by alibaba.

the class StatisticTest method test_stat.

public void test_stat() throws Exception {
    JdbcConnectionStat stat = new JdbcConnectionStat();
    Assert.assertEquals(null, stat.getConnectLastTime());
    stat.setActiveCount(1);
    Assert.assertEquals(1, stat.getActiveMax());
    stat.setActiveCount(2);
    Assert.assertEquals(2, stat.getActiveMax());
}
Also used : JdbcConnectionStat(com.alibaba.druid.stat.JdbcConnectionStat)

Aggregations

JdbcConnectionStat (com.alibaba.druid.stat.JdbcConnectionStat)1