@@ -208,8 +208,6 @@ class PushMessagingTest {
208208 notificationsTypes = fromJson(NOTIFICATIONS_TYPES_JSON )
209209 )
210210
211- ApiVersionStrings .VERSION_NUMBER_TEST = " v64.0"
212-
213211 // Test once for coverage only with the default REST client.
214212 assertThrows(SSLPeerUnverifiedException ::class .java) {
215213 salesforceSdkManager.invokeServerNotificationAction(
@@ -231,24 +229,12 @@ class PushMessagingTest {
231229 fun testInvokeServerNotificationActionViaSdkManager_WithoutAccount () {
232230 val salesforceSdkManager = SalesforceSDKManager .getInstance()
233231
234- val restResponse = mockk<RestResponse >()
235- every { restResponse.asString() } returns encodeToString(
236- NotificationsActionsResponseBody .serializer(),
237- NotificationsActionsResponseBody (
238- message = " test_message"
232+ assertThrows(NullPointerException ::class .java) {
233+ salesforceSdkManager.invokeServerNotificationAction(
234+ notificationId = " test_notification_id" ,
235+ actionKey = " test_action_key" ,
239236 )
240- )
241- every { restResponse.isSuccess } returns true
242- val restClient = mockk<RestClient >()
243- every { restClient.sendSync(any()) } returns restResponse
244-
245- val notificationsActionsResponseBody = salesforceSdkManager.invokeServerNotificationAction(
246- notificationId = " test_notification_id" ,
247- actionKey = " test_action_key" ,
248- restClient = restClient
249- )
250-
251- assertNull(notificationsActionsResponseBody)
237+ }
252238 }
253239
254240 @Test
@@ -273,6 +259,8 @@ class PushMessagingTest {
273259 notificationsTypes = fromJson(NOTIFICATIONS_TYPES_JSON )
274260 )
275261
262+ ApiVersionStrings .VERSION_NUMBER_TEST = " v63.0"
263+
276264 val notificationsActionsResponseBody = salesforceSdkManager.invokeServerNotificationAction(
277265 notificationId = " test_notification_id" ,
278266 actionKey = " test_action_key" ,
@@ -299,8 +287,6 @@ class PushMessagingTest {
299287 notificationsTypes = fromJson(NOTIFICATIONS_TYPES_JSON )
300288 )
301289
302- ApiVersionStrings .VERSION_NUMBER_TEST = " v64.0"
303-
304290 assertThrows(NotificationsApiException ::class .java) {
305291 salesforceSdkManager.invokeServerNotificationAction(
306292 notificationId = " test_notification_id" ,
@@ -330,8 +316,6 @@ class PushMessagingTest {
330316 notificationsTypes = fromJson(NOTIFICATIONS_TYPES_JSON )
331317 )
332318
333- ApiVersionStrings .VERSION_NUMBER_TEST = " v64.0"
334-
335319 assertThrows(NotificationsApiException ::class .java) {
336320 salesforceSdkManager.invokeServerNotificationAction(
337321 notificationId = " test_notification_id" ,
@@ -368,9 +352,6 @@ class PushMessagingTest {
368352 every { restClient.clientInfo } returns clientInfo
369353 every { restClient.sendSync(any()) } returns restResponse
370354
371- // Setup.
372- ApiVersionStrings .VERSION_NUMBER_TEST = " v64.0"
373-
374355 assertThrows(NotificationsApiException ::class .java) {
375356 salesforceSdkManager.invokeServerNotificationAction(
376357 notificationId = " test_notification_id" ,
@@ -396,9 +377,6 @@ class PushMessagingTest {
396377 every { restClient.clientInfo } returns clientInfo
397378 every { restClient.sendSync(any()) } returns restResponse
398379
399- // Setup.
400- ApiVersionStrings .VERSION_NUMBER_TEST = " v64.0"
401-
402380 assertThrows(NotificationsApiException ::class .java) {
403381 salesforceSdkManager.invokeServerNotificationAction(
404382 notificationId = " test_notification_id" ,
@@ -431,9 +409,6 @@ class PushMessagingTest {
431409 every { restClient.clientInfo } returns clientInfo
432410 every { restClient.sendSync(any()) } returns restResponse
433411
434- // Setup.
435- ApiVersionStrings .VERSION_NUMBER_TEST = " v64.0"
436-
437412 assertThrows(NotificationsApiException ::class .java) {
438413 salesforceSdkManager.invokeServerNotificationAction(
439414 notificationId = " test_notification_id" ,
0 commit comments