Mock apnPushNotificationScheduler
This commit is contained in:
parent
350682b83a
commit
c485d317fb
|
@ -151,6 +151,8 @@ class PushNotificationManagerTest {
|
||||||
when(device.getApnId()).thenReturn(deviceToken);
|
when(device.getApnId()).thenReturn(deviceToken);
|
||||||
when(apnSender.sendNotification(any()))
|
when(apnSender.sendNotification(any()))
|
||||||
.thenReturn(CompletableFuture.completedFuture(new SendPushNotificationResult(true, null, false)));
|
.thenReturn(CompletableFuture.completedFuture(new SendPushNotificationResult(true, null, false)));
|
||||||
|
when(apnPushNotificationScheduler.scheduleBackgroundNotification(account, device))
|
||||||
|
.thenReturn(CompletableFuture.completedFuture(null));
|
||||||
} else {
|
} else {
|
||||||
when(device.getGcmId()).thenReturn(deviceToken);
|
when(device.getGcmId()).thenReturn(deviceToken);
|
||||||
when(fcmSender.sendNotification(any()))
|
when(fcmSender.sendNotification(any()))
|
||||||
|
|
Loading…
Reference in New Issue