use of com.nightscout.core.preferences.TestPreferences in project android-uploader by nightscout.
the class BaseUploaderTest method setUp.
@Before
public void setUp() throws Exception {
preferences = new TestPreferences();
mockUploader = new MockUploader(preferences);
exceptionUploader = new ExceptionThrowingUploader(preferences);
}
use of com.nightscout.core.preferences.TestPreferences in project android-uploader by nightscout.
the class MongoUploaderTest method setUp.
@Before
public void setUp() throws Exception {
mockCollection = mock(DBCollection.class);
preferences = new TestPreferences();
mongoUploader = new MongoUploader(preferences, new MongoClientURI("mongodb://localhost"), "collection", "dsCollection");
mongoUploader.setCollection(mockCollection);
mongoUploader.setDeviceStatusCollection(mockCollection);
setUpUpsertCapture();
}
use of com.nightscout.core.preferences.TestPreferences in project android-uploader by nightscout.
the class RestLegacyUploaderTest method setUp.
@Before
public void setUp() throws Exception {
preferences = new TestPreferences();
restUploader = new RestLegacyUploader(preferences, URI.create("http://test.com/"));
mockHttpClient = mock(HttpClient.class);
restUploader.setClient(mockHttpClient);
setUpExecuteCaptor();
}
use of com.nightscout.core.preferences.TestPreferences in project android-uploader by nightscout.
the class RestV1UploaderTest method setUp.
@Before
public void setUp() throws Exception {
preferences = new TestPreferences();
restUploader = new RestV1Uploader(preferences, URI.create("http://testingtesting@test.com/v1"));
mockHttpClient = Mockito.mock(HttpClient.class);
restUploader.setClient(mockHttpClient);
setUpExecuteCaptor();
}
Aggregations