Skip to content

Commit 27587aa

Browse files
authored
Merge pull request #341 from Countly/fix--add-missing-test-params
fix: add missing mock
2 parents 2f841e2 + d4a6429 commit 27587aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sdk/src/androidTest/java/ly/count/android/sdk/UtilsInternalLimitsTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public void removeUnsupportedDataTypes_arrays() {
324324

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

327-
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
327+
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));
328328

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

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

353-
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
353+
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));
354354

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

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

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

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

396-
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
396+
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));
397397
Assert.assertEquals(11, segmentation.size());
398398
Assert.assertEquals(aa1, segmentation.get("aa1"));
399399
Assert.assertEquals(aa2, segmentation.get("aa2"));
@@ -422,7 +422,7 @@ public void removeUnsupportedDataTypes_jsonArray() {
422422

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

425-
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation));
425+
Assert.assertTrue(UtilsInternalLimits.removeUnsupportedDataTypes(segmentation, Mockito.mock(ModuleLog.class)));
426426
Assert.assertEquals(7, segmentation.size());
427427
Assert.assertEquals(empty, segmentation.get("empty"));
428428
Assert.assertEquals(arrInt, segmentation.get("arrInt"));

0 commit comments

Comments
 (0)