use of com.onesignal.MockOneSignalDBHelper in project OneSignal-Android-SDK by OneSignal.
the class MainOneSignalClassRunner method beforeEachTest.
@Before
public void beforeEachTest() throws Exception {
blankActivityController = Robolectric.buildActivity(BlankActivity.class).create();
blankActivity = blankActivityController.get();
time = new MockOSTimeImpl();
trackerFactory = new OSTrackerFactory(new MockOSSharedPreferences(), new MockOSLog(), time);
sessionManager = new MockSessionManager(OneSignal_getSessionListener(), trackerFactory, new MockOSLog());
dbHelper = new MockOneSignalDBHelper(ApplicationProvider.getApplicationContext());
TestHelpers.setupTestWorkManager(blankActivity);
cleanUp();
OneSignal_setTime(time);
}
use of com.onesignal.MockOneSignalDBHelper in project OneSignal-Android-SDK by OneSignal.
the class InAppMessageIntegrationTests method beforeEachTest.
@Before
public void beforeEachTest() throws Exception {
ShadowDynamicTimer.shouldScheduleTimers = true;
time = new MockOSTimeImpl();
preferences = new MockOSSharedPreferences();
trackerFactory = new OSTrackerFactory(preferences, new MockOSLog(), time);
sessionManager = new MockSessionManager(OneSignal_getSessionListener(), trackerFactory, new MockOSLog());
blankActivityController = Robolectric.buildActivity(BlankActivity.class).create();
blankActivity = blankActivityController.get();
dbHelper = new MockOneSignalDBHelper(ApplicationProvider.getApplicationContext());
TestHelpers.beforeTestInitAndCleanup();
// Set remote_params GET response
setRemoteParamsGetHtmlResponse();
}
use of com.onesignal.MockOneSignalDBHelper in project OneSignal-Android-SDK by OneSignal.
the class SynchronizerIntegrationTests method beforeEachTest.
@Before
public void beforeEachTest() throws Exception {
blankActivityController = Robolectric.buildActivity(BlankActivity.class).create();
blankActivity = blankActivityController.get();
time = new MockOSTimeImpl();
trackerFactory = new OSTrackerFactory(new MockOSSharedPreferences(), new MockOSLog(), time);
sessionManager = new MockSessionManager(OneSignal_getSessionListener(), trackerFactory, new MockOSLog());
dbHelper = new MockOneSignalDBHelper(ApplicationProvider.getApplicationContext());
TestHelpers.setupTestWorkManager(blankActivity);
cleanUp();
OneSignal_setTime(time);
}
use of com.onesignal.MockOneSignalDBHelper in project OneSignal-Android-SDK by OneSignal.
the class DatabaseRunner method beforeEachTest.
@Before
public void beforeEachTest() throws Exception {
TestHelpers.beforeTestInitAndCleanup();
outcomeTableProvider = new OSOutcomeTableProvider();
dbHelper = new MockOneSignalDBHelper(ApplicationProvider.getApplicationContext());
}
Aggregations