Skip to content

Commit

Permalink
Merge pull request #341 from Countly/fix--add-missing-test-params
Browse files Browse the repository at this point in the history
fix: add missing mock
  • Loading branch information
turtledreams committed Jul 1, 2024
2 parents 2f841e2 + d4a6429 commit 27587aa
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public void removeUnsupportedDataTypes_arrays() {

Assert.assertEquals(7, segmentation.size());

Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));

Assert.assertEquals(6, segmentation.size());
Assert.assertEquals(aa1, segmentation.get("aa1"));
Expand All @@ -350,7 +350,7 @@ public void removeUnsupportedDataTypes_lists() {

Assert.assertEquals(9, segmentation.size());

Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));

Assert.assertEquals(6, segmentation.size());
Assert.assertEquals(aa1, segmentation.get("aa1"));
Expand All @@ -369,7 +369,7 @@ public void removeUnsupportedDataTypes_listsEmpty() {

Assert.assertEquals(2, segmentation.size());

Assert.assertFalse(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
Assert.assertFalse(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));
Assert.assertEquals(2, segmentation.size());
Assert.assertEquals(aa1, segmentation.get("aa1"));
Assert.assertEquals(aa2, segmentation.get("aa2"));
Expand All @@ -393,7 +393,7 @@ public void removeUnsupportedDataTypes_arraysEmpty() {

Assert.assertEquals(12, segmentation.size());

Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));
Assert.assertEquals(11, segmentation.size());
Assert.assertEquals(aa1, segmentation.get("aa1"));
Assert.assertEquals(aa2, segmentation.get("aa2"));
Expand Down Expand Up @@ -422,7 +422,7 @@ public void removeUnsupportedDataTypes_jsonArray() {

Assert.assertEquals(8, segmentation.size());

Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));
Assert.assertEquals(7, segmentation.size());
Assert.assertEquals(empty, segmentation.get("empty"));
Assert.assertEquals(arrInt, segmentation.get("arrInt"));
Expand Down

0 comments on commit 27587aa

Please sign in to comment.