File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
datapipelines/src/test/java/io/customer/datapipelines Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import io.customer.datapipelines.testutils.utils.screenEvents
1515import io.customer.datapipelines.testutils.utils.trackEvents
1616import io.customer.sdk.core.di.SDKComponent
1717import io.customer.sdk.data.model.CustomAttributes
18+ import io.customer.sdk.data.model.Settings
1819import io.customer.sdk.data.store.DeviceStore
1920import io.customer.sdk.data.store.GlobalPreferenceStore
2021import io.customer.sdk.util.EventNames
@@ -593,6 +594,11 @@ class DataPipelinesInteractionTests : JUnitTest() {
593594 deviceRegisterEvent.context.deviceToken shouldBeEqualTo givenToken
594595 }
595596
597+ @Test
598+ fun device_givenSDKInitialized_expectSettingsToBeStored () {
599+ assertCalledOnce { globalPreferenceStore.saveSettings(Settings (writeKey = analytics.configuration.writeKey, apiHost = analytics.configuration.apiHost)) }
600+ }
601+
596602 @Test
597603 fun device_givenRegisterTokenWhenNoProfileIdentified_expectStoreAndRegisterDeviceForAnonymousProfile () {
598604 val givenToken = String .random
You can’t perform that action at this time.
0 commit comments