Search in sources :

Example 11 with CalRecord

use of com.nightscout.core.dexcom.records.CalRecord in project android-uploader by nightscout.

the class CalRecordTest method shouldNotParseSmallCal505Record.

@Test(expected = InvalidRecordLengthException.class)
public void shouldNotParseSmallCal505Record() throws Exception {
    record505 = Arrays.copyOfRange(record505, 0, record505.length - 1);
    CalRecord calRecord = new CalRecord(record505);
}
Also used : CalRecord(com.nightscout.core.dexcom.records.CalRecord) Test(org.junit.Test)

Example 12 with CalRecord

use of com.nightscout.core.dexcom.records.CalRecord in project android-uploader by nightscout.

the class CalRecordTest method shouldNotParseSmallCalPre505Record.

@Test(expected = InvalidRecordLengthException.class)
public void shouldNotParseSmallCalPre505Record() throws Exception {
    recordPre505 = Arrays.copyOfRange(recordPre505, 0, recordPre505.length - 1);
    CalRecord calRecord = new CalRecord(recordPre505);
}
Also used : CalRecord(com.nightscout.core.dexcom.records.CalRecord) Test(org.junit.Test)

Aggregations

CalRecord (com.nightscout.core.dexcom.records.CalRecord)12 Test (org.junit.Test)8 ArrayList (java.util.ArrayList)4 CalSubrecord (com.nightscout.core.dexcom.records.CalSubrecord)2 EGVRecord (com.nightscout.core.dexcom.records.EGVRecord)2 MeterRecord (com.nightscout.core.dexcom.records.MeterRecord)2 SensorRecord (com.nightscout.core.dexcom.records.SensorRecord)2 ReadData (com.nightscout.core.drivers.ReadData)2 InvalidRecordLengthException (com.nightscout.core.dexcom.InvalidRecordLengthException)1 PageHeader (com.nightscout.core.dexcom.records.PageHeader)1 CalibrationEntry (com.nightscout.core.model.CalibrationEntry)1 DownloadResults (com.nightscout.core.model.DownloadResults)1 DownloadStatus (com.nightscout.core.model.DownloadStatus)1 G4Download (com.nightscout.core.model.G4Download)1 MeterEntry (com.nightscout.core.model.MeterEntry)1 SensorEntry (com.nightscout.core.model.SensorEntry)1 SensorGlucoseValueEntry (com.nightscout.core.model.SensorGlucoseValueEntry)1 IOException (java.io.IOException)1 Date (java.util.Date)1 JSONArray (org.json.JSONArray)1