-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Push to in-app unit tests #338
Add Push to in-app unit tests #338
Conversation
@@ -90,4 +90,9 @@ dependencies { | |||
exclude(group = "com.adobe.marketing.mobile", module = "core") | |||
} | |||
androidTestImplementation(project(":messagingtestutils")) | |||
// specify byte buddy version to fix compatibility issue with jdk 21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this resolves a byte buddy specific issue with jdk 21 which was blocking tests from running from within android studio.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-v3.3.0 #338 +/- ##
=============================================
Coverage ? 82.44%
Complexity ? 832
=============================================
Files ? 81
Lines ? 3873
Branches ? 593
=============================================
Hits ? 3193
Misses ? 489
Partials ? 191
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
"pushTracking.customAction", | ||
messagingEvent.getEventData().get("eventType")); | ||
|
||
Event pushToInappEvent = eventCaptor.getAllValues().get(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this even be dispatched if the updatePropositionsForSurfaces
callback returns false?
assertEquals(true, messagingEvent.getEventData().get("applicationOpened")); | ||
assertEquals("mockXdmData", messagingEvent.getEventData().get("adobe_xdm")); | ||
assertEquals( | ||
"pushTracking.customAction", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Can we also verify that adb_iam_id
exists in the payload?
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: