Search in sources :

Example 1 with LocalDbHandler

use of com.jakdor.labday.common.localdb.LocalDbHandler in project LabDayApp by jakdor.

the class ProjectRepositoryIntegrationTest method setUp.

@Before
public void setUp() throws Exception {
    targetContext = ApplicationProvider.getApplicationContext();
    testContext = InstrumentationRegistry.getInstrumentation().getContext();
    SoLoader.init(targetContext, false);
    localDbHandler = new LocalDbHandler(Instrumentation.newApplication(TestApp.class, targetContext));
    projectRepository = new ProjectRepository(new NetworkManager(new RetrofitBuilder()), localDbHandler, new RxSchedulersFacade());
}
Also used : LocalDbHandler(com.jakdor.labday.common.localdb.LocalDbHandler) ProjectRepository(com.jakdor.labday.common.repository.ProjectRepository) RxSchedulersFacade(com.jakdor.labday.rx.RxSchedulersFacade) NetworkManager(com.jakdor.labday.common.repository.NetworkManager) RetrofitBuilder(com.jakdor.labday.common.network.RetrofitBuilder) Before(org.junit.Before)

Aggregations

LocalDbHandler (com.jakdor.labday.common.localdb.LocalDbHandler)1 RetrofitBuilder (com.jakdor.labday.common.network.RetrofitBuilder)1 NetworkManager (com.jakdor.labday.common.repository.NetworkManager)1 ProjectRepository (com.jakdor.labday.common.repository.ProjectRepository)1 RxSchedulersFacade (com.jakdor.labday.rx.RxSchedulersFacade)1 Before (org.junit.Before)1