Search in sources :

Example 1 with GeoNotificationHelper

use of org.infobip.mobile.messaging.geo.transition.GeoNotificationHelper in project mobile-messaging-sdk-android by infobip.

the class GeoNotificationHelperTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    geoNotificationHelper = new GeoNotificationHelper(context, geoBroadcaster, coreBroadcaster, notificationHandler);
    geoMessageArgumentCaptor = ArgumentCaptor.forClass(GeoMessage.class);
    messageArgumentCaptor = ArgumentCaptor.forClass(Message.class);
    geoEventTypeArgumentCaptor = ArgumentCaptor.forClass(GeoEventType.class);
}
Also used : Message(org.infobip.mobile.messaging.Message) GeoNotificationHelper(org.infobip.mobile.messaging.geo.transition.GeoNotificationHelper)

Example 2 with GeoNotificationHelper

use of org.infobip.mobile.messaging.geo.transition.GeoNotificationHelper in project mobile-messaging-sdk-android by infobip.

the class GeoAreasHandlerTests method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    enableMessageStoreForReceivedMessages();
    geoNotificationHelper = Mockito.mock(GeoNotificationHelper.class);
    geoReporter = Mockito.mock(GeoReporter.class);
    messageStore = Mockito.mock(MessageStore.class);
    geoAreasHandler = new GeoAreasHandler(contextMock, mobileMessagingCore, geoNotificationHelper, geoReporter, new GeofencingHelper(context));
    geoReportCaptor = ArgumentCaptor.forClass(GeoReport[].class);
    geoNotificationCaptor = new ArgumentCaptor<>();
}
Also used : MessageStore(org.infobip.mobile.messaging.storage.MessageStore) GeofencingHelper(org.infobip.mobile.messaging.geo.geofencing.GeofencingHelper) GeoAreasHandler(org.infobip.mobile.messaging.geo.transition.GeoAreasHandler) GeoReporter(org.infobip.mobile.messaging.geo.report.GeoReporter) GeoNotificationHelper(org.infobip.mobile.messaging.geo.transition.GeoNotificationHelper)

Aggregations

GeoNotificationHelper (org.infobip.mobile.messaging.geo.transition.GeoNotificationHelper)2 Message (org.infobip.mobile.messaging.Message)1 GeofencingHelper (org.infobip.mobile.messaging.geo.geofencing.GeofencingHelper)1 GeoReporter (org.infobip.mobile.messaging.geo.report.GeoReporter)1 GeoAreasHandler (org.infobip.mobile.messaging.geo.transition.GeoAreasHandler)1 MessageStore (org.infobip.mobile.messaging.storage.MessageStore)1