mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Merge pull request #3685 from joshuayash/master
fix typo: merg -> merge
This commit is contained in:
@@ -55,14 +55,14 @@ public class WallStatTest_statMap extends TestCase {
|
||||
System.out.println(JSONUtils.toJSONString(statMapB));
|
||||
System.out.println(JSONUtils.toJSONString(statMapC));
|
||||
|
||||
Map<String, Object> statMapMerged = DruidStatManagerFacade.mergWallStat(statMapA, statMapB);
|
||||
Map<String, Object> statMapMerged = DruidStatManagerFacade.mergeWallStat(statMapA, statMapB);
|
||||
System.out.println(JSONUtils.toJSONString(statMapMerged));
|
||||
|
||||
Assert.assertEquals(2L, statMapMerged.get("checkCount"));
|
||||
Assert.assertEquals(21L, statMapMerged.get("violationEffectRowCount"));
|
||||
Assert.assertEquals(2, ((Collection<Map<String, Object>>) statMapMerged.get("blackList")).size());
|
||||
|
||||
statMapMerged = DruidStatManagerFacade.mergWallStat(statMapMerged, statMapC);
|
||||
statMapMerged = DruidStatManagerFacade.mergeWallStat(statMapMerged, statMapC);
|
||||
System.out.println(JSONUtils.toJSONString(statMapMerged));
|
||||
Assert.assertEquals(2, ((Collection<Map<String, Object>>) statMapMerged.get("blackList")).size());
|
||||
Assert.assertEquals(33L, statMapMerged.get("violationEffectRowCount"));
|
||||
|
||||
Reference in New Issue
Block a user