mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
增强监控
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@333 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -24,10 +24,10 @@ public class StatisticTest extends TestCase {
|
||||
|
||||
public void test_stat() throws Exception {
|
||||
JdbcConnectionStat stat = new JdbcConnectionStat();
|
||||
Assert.assertEquals(null, stat.getLastConnectTime());
|
||||
stat.setConcurrentCount(1);
|
||||
Assert.assertEquals(1, stat.getConcurrentMax());
|
||||
stat.setConcurrentCount(2);
|
||||
Assert.assertEquals(2, stat.getConcurrentMax());
|
||||
Assert.assertEquals(null, stat.getConnectLastTime());
|
||||
stat.setActiveCount(1);
|
||||
Assert.assertEquals(1, stat.getConnectingMax());
|
||||
stat.setActiveCount(2);
|
||||
Assert.assertEquals(2, stat.getConnectingMax());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user