use of com.jakdor.labday.common.repository.NetworkManager in project LabDayApp by jakdor.
the class ProjectRepositoryIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
// todo replace with mock, this is a real app context!
targetContext = InstrumentationRegistry.getTargetContext();
testContext = InstrumentationRegistry.getContext();
SoLoader.init(targetContext, false);
localDbHandler = new LocalDbHandler(Instrumentation.newApplication(TestApp.class, targetContext));
projectRepository = new ProjectRepository(new NetworkManager(new RetrofitBuilder()), localDbHandler, new RxSchedulersFacade());
}
use of com.jakdor.labday.common.repository.NetworkManager in project LabDayApp by jakdor.
the class NetworkManagerIntegrationTest method setUp.
/**
* Setup local Mock REST API server for instrumentation tests
*/
@Before
public void setUp() throws Exception {
testContext = InstrumentationRegistry.getContext();
networkManager = new NetworkManager(new RetrofitBuilder());
}
Aggregations