Skip to content

Commit 01494d2

Browse files
authored
fix(tests): Fix for failed testRegister test. (#107)
1 parent b1138ff commit 01494d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

AndroidSDKTests/src/test/java/com/leanplum/LeanplumPushServiceTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ public void testRegister() throws Exception {
340340
PowerMockito.doReturn(true).when(Util.class, "hasPlayServices");
341341
PowerMockito.doReturn(true).when(LeanplumPushService.class, "enableFcmServices");
342342
PowerMockito.doReturn(true).when(LeanplumPushService.class, "enableGcmServices");
343+
PowerMockito.doReturn(false).when(LeanplumPushService.class, "hasAppIDChanged", any());
343344

344345
LeanplumGcmProvider gcmProviderMock = spy(new LeanplumGcmProvider());
345346
whenNew(LeanplumGcmProvider.class).withNoArguments().thenReturn(gcmProviderMock);

0 commit comments

Comments
 (0)