-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2243 from OneSignal/huawei-incorrect-notification…
…-intent-path Fix: incorrect activity path for NotificationOpenedActivityHMS
- Loading branch information
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...alSDK/onesignal/notifications/src/test/java/com/onesignal/notifications/ClassPathTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.onesignal.notifications | ||
|
||
import io.kotest.core.spec.style.FunSpec | ||
import org.junit.jupiter.api.assertDoesNotThrow | ||
|
||
class ClassPathTests : FunSpec({ | ||
test("ensure the class path for NotificationOpenedActivityHMS.kt is in consistent with that returned by the backend service") { | ||
// The test will fail if the classpath is changed by accident. | ||
// If the change is intentional and corresponds with the backend update, modify or remove this test accordingly. | ||
val fullClassName = "com.onesignal.NotificationOpenedActivityHMS" | ||
assertDoesNotThrow { | ||
Class.forName(fullClassName) | ||
} | ||
} | ||
}) |