mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
修正encodingFilter,兼容SimpleDriver
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@428 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -26,8 +26,8 @@ public class StatisticTest extends TestCase {
|
||||
JdbcConnectionStat stat = new JdbcConnectionStat();
|
||||
Assert.assertEquals(null, stat.getConnectLastTime());
|
||||
stat.setActiveCount(1);
|
||||
Assert.assertEquals(1, stat.getConnectingMax());
|
||||
Assert.assertEquals(1, stat.getActiveMax());
|
||||
stat.setActiveCount(2);
|
||||
Assert.assertEquals(2, stat.getConnectingMax());
|
||||
Assert.assertEquals(2, stat.getActiveMax());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ public class StatFilterTest extends TestCase {
|
||||
if (url.equals((String) row.get("URL"))) {
|
||||
count++;
|
||||
}
|
||||
Assert.assertEquals(0, row.get("Count_50000_more"));
|
||||
Assert.assertEquals(0L, row.get("ExecuteCount_30_more_Minutes"));
|
||||
}
|
||||
Assert.assertEquals(true, count > 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user