use of org.infobip.mobile.messaging.api.registration.RegistrationResponse in project mobile-messaging-sdk-android by infobip.
the class PushUnregisteredTest method test_push_registration_disabled.
@Test
public void test_push_registration_disabled() throws Exception {
// Given
given(mobileApiRegistration.upsert(anyString(), anyBoolean())).willReturn(new RegistrationResponse("testDeviceApplicationInstanceId", false));
// Then
verifyRegistrationStatusUpdate(after(1000).atLeastOnce(), false);
boolean isPushRegistrationEnabled = captor.getValue();
assertFalse(isPushRegistrationEnabled);
verifySeenStatusReporter(after(1000).atLeastOnce());
// reports should NOT be called if push is disabled
verifyGeoReporting(after(1000).never());
verifyMessagesSynchronizer(after(1000).never());
}
Aggregations