File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
iterableapi/src/test/java/com/iterable/iterableapi Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,9 @@ public void testBackgroundCustomActionProcessedAfterSDKInit() throws Exception {
197197 // Receive push action when SDK is not initialized (action won't be handled)
198198 iterablePushActionReceiver .onReceive (ApplicationProvider .getApplicationContext (), intent );
199199
200+ // Reset to real implementation so custom action handler gets invoked
201+ IterableActionRunner .instance = new IterableActionRunner .IterableActionRunnerImpl ();
202+
200203 // Now initialize SDK with a custom action handler
201204 stubAnyRequestReturningStatusCode (server , 200 , "{}" );
202205 final boolean [] handlerCalled = {false };
@@ -264,6 +267,9 @@ public void testPreviousPendingActionClearedOnNewPush() throws Exception {
264267 secondIntent .putExtra (IterableConstants .ITERABLE_DATA_KEY , IterableTestUtils .getResourceString ("push_payload_custom_action.json" ));
265268 iterablePushActionReceiver .onReceive (ApplicationProvider .getApplicationContext (), secondIntent );
266269
270+ // Reset to real implementation so custom action handler gets invoked
271+ IterableActionRunner .instance = new IterableActionRunner .IterableActionRunnerImpl ();
272+
267273 // Now initialize SDK with a custom action handler
268274 stubAnyRequestReturningStatusCode (server , 200 , "{}" );
269275 final String [] lastActionType = {null };
You can’t perform that action at this time.
0 commit comments