use of org.infobip.mobile.messaging.api.messages.MobileApiMessages in project mobile-messaging-sdk-android by infobip.
the class PushUnregisteredTest method setUp.
@SuppressLint({ "CommitPrefEdits", "ApplySharedPref" })
@Override
public void setUp() throws Exception {
super.setUp();
ExecutorService taskExecutor = Executors.newSingleThreadExecutor();
MobileMessagingStats stats = mobileMessagingCore.getStats();
PreferenceHelper.saveLong(context, MobileMessagingProperty.BATCH_REPORTING_DELAY, 100L);
PreferenceHelper.saveBoolean(context, MobileMessagingProperty.GEOFENCING_ACTIVATED, true);
mobileApiMessages = mock(MobileApiMessages.class);
mobileApiGeo = mock(MobileApiGeo.class);
mobileMessageHandler = mock(MobileMessageHandler.class);
RetryPolicyProvider retryPolicyProvider = new RetryPolicyProvider(context);
retryPolicy = retryPolicyProvider.DEFAULT();
registrationSynchronizer = new RegistrationSynchronizer(context, mobileMessagingCore, stats, taskExecutor, coreBroadcaster, retryPolicyProvider, mobileApiRegistration);
seenStatusReporter = new SeenStatusReporter(mobileMessagingCore, stats, taskExecutor, coreBroadcaster, mobileApiMessages, new BatchReporter(100L));
geoReporter = new GeoReporter(context, mobileMessagingCore, geoBroadcaster, mobileMessagingCore.getStats(), mobileApiGeo);
messagesSynchronizer = new MessagesSynchronizer(mobileMessagingCore, stats, taskExecutor, coreBroadcaster, retryPolicy, mobileMessageHandler, mobileApiMessages);
captor = ArgumentCaptor.forClass(Boolean.class);
}
Aggregations