Skip to content

Commit

Permalink
Adding additional test verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtursKadikis committed Oct 6, 2023
1 parent 6261758 commit 517b2fa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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
Expand All @@ -455,6 +456,9 @@ public void addCrashReport_crashReportingNotEnabled() {
@Test
public void addCrashReport() {
addCrashReport_base(TestUtils.getConfigSessions(Config.Feature.CrashReporting), 1);
Map<String, String>[] requests = TestUtils.getCurrentRQ();
Assert.assertTrue(requests[0].containsKey("crash"));
Assert.assertTrue(!requests[0].get("crash").isEmpty());
}

/**
Expand Down

0 comments on commit 517b2fa

Please sign in to comment.