File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
AndroidSDKTests/src/test/java/com/leanplum Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ public void testInitPushService() throws Exception {
133133 Method initPushServiceMethod = LeanplumPushService .class .
134134 getDeclaredMethod ("initPushService" );
135135 initPushServiceMethod .setAccessible (true );
136- when (LeanplumPushService .class , "enableServices" ).thenReturn (true );
136+ when (LeanplumPushService .class , "enableFcmServices" ).thenReturn (true );
137+ when (LeanplumPushService .class , "enableGcmServices" ).thenReturn (true );
137138
138139 // Tests for Firebase.
139140 when (LeanplumPushService .isFirebaseEnabled ()).thenReturn (true );
@@ -337,7 +338,8 @@ public void testRegister() throws Exception {
337338 Request .setAppId (null , null );
338339
339340 PowerMockito .doReturn (true ).when (Util .class , "hasPlayServices" );
340- PowerMockito .doReturn (true ).when (LeanplumPushService .class , "enableServices" );
341+ PowerMockito .doReturn (true ).when (LeanplumPushService .class , "enableFcmServices" );
342+ PowerMockito .doReturn (true ).when (LeanplumPushService .class , "enableGcmServices" );
341343
342344 LeanplumGcmProvider gcmProviderMock = spy (new LeanplumGcmProvider ());
343345 whenNew (LeanplumGcmProvider .class ).withNoArguments ().thenReturn (gcmProviderMock );
You can’t perform that action at this time.
0 commit comments