use of com.nightscout.core.drivers.AbstractUploaderDevice in project android-uploader by nightscout.
the class RestV1UploaderTest method testDeviceStatus_Entity.
@Test
public void testDeviceStatus_Entity() throws Exception {
AbstractUploaderDevice deviceStatus = mockDeviceStatus();
restUploader.uploadDeviceStatus(deviceStatus);
HttpPost post = (HttpPost) captor.getValue();
String entity = CharStreams.toString(new InputStreamReader(post.getEntity().getContent()));
verifyDeviceStatus(new JSONObject(entity), deviceStatus);
}
Aggregations