diff --git a/sdk-java/src/test/java/ly/count/sdk/java/internal/SessionImplTests.java b/sdk-java/src/test/java/ly/count/sdk/java/internal/SessionImplTests.java index 93cbd22f9..a64fe1984 100644 --- a/sdk-java/src/test/java/ly/count/sdk/java/internal/SessionImplTests.java +++ b/sdk-java/src/test/java/ly/count/sdk/java/internal/SessionImplTests.java @@ -1,6 +1,7 @@ package ly.count.sdk.java.internal; import java.util.List; +import java.util.Map; import java.util.concurrent.ExecutionException; import java.util.function.BiFunction; import java.util.function.Consumer; @@ -436,7 +437,7 @@ private void addLocation_base(Config config, Object expected) { Assert.assertEquals(expected, session.params.get("location")); } - + /** * "addCrashReport" with no consent to crash reporting * mocked exception given to function and validating function calls @@ -455,6 +456,9 @@ public void addCrashReport_crashReportingNotEnabled() { @Test public void addCrashReport() { addCrashReport_base(TestUtils.getConfigSessions(Config.Feature.CrashReporting), 1); + Map[] requests = TestUtils.getCurrentRQ(); + Assert.assertTrue(requests[0].containsKey("crash")); + Assert.assertTrue(!requests[0].get("crash").isEmpty()); } /**