File tree Expand file tree Collapse file tree
libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/app Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,9 +174,24 @@ class SalesforceSDKUpgradeManagerTest {
174174 }
175175
176176 @Test
177- fun testUpgradeAfter12 () {
177+ fun testUpgradeFromBefore1302 () {
178+ // Set version to a version before 13.0.2
179+ setVersion(" 12.2.0" )
180+
181+ // Create public key for push notifications
182+ KeyStoreWrapper .getInstance().getRSAPublicString(PushService .pushNotificationKeyName)
183+
184+ // Upgrade to latest
185+ upgradeMgr.upgrade()
186+
187+ // Make sure re-registration is requested
188+ Assert .assertTrue(PushMessaging .reRegistrationRequested)
189+ }
190+
191+ @Test
192+ fun testUpgradeAfter1302 () {
178193 // Set version to 12.0.0
179- setVersion(" 12 .0.0 " )
194+ setVersion(" 13 .0.2 " )
180195
181196 // Create public key for push notifications
182197 KeyStoreWrapper .getInstance().getRSAPublicString(PushService .pushNotificationKeyName)
You can’t perform that action at this time.
0 commit comments