cleanup
This commit is contained in:
parent
c52c0e1125
commit
7042553137
8 changed files with 26 additions and 68 deletions
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Maintenance -->
|
||||
<!-- PumpType-->
|
||||
<!-- PumpPluginBase -->
|
||||
<!-- DecimalFormatter-->
|
||||
<string name="format_insulin_units1">%1$.1f A</string>
|
||||
<string name="format_insulin_units">%1$.2f A</string>
|
||||
</resources>
|
|
@ -1,9 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Maintenance -->
|
||||
<!-- PumpType-->
|
||||
<!-- PumpPluginBase -->
|
||||
<!-- DecimalFormatter-->
|
||||
<string name="format_insulin_units1">%1$.1f U</string>
|
||||
<string name="format_insulin_units">%1$.2f U</string>
|
||||
</resources>
|
|
@ -1,23 +0,0 @@
|
|||
package info.nightscout.core.pump.common.utils;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import info.nightscout.core.utils.DateTimeUtil;
|
||||
|
||||
class DateTimeUtilUTest {
|
||||
|
||||
@Test
|
||||
void getATechDateDifferenceAsMinutes() {
|
||||
|
||||
long dt1 = 20191001182301L;
|
||||
long dt2 = 20191001192805L;
|
||||
|
||||
int aTechDateDifferenceAsMinutes = DateTimeUtil.getATechDateDifferenceAsMinutes(dt1, dt2);
|
||||
|
||||
Assertions.assertEquals(65, aTechDateDifferenceAsMinutes);
|
||||
|
||||
//Log.d("DateTimeUtilUTest", "Time difference: " + aTechDateDifferenceAsMinutes);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package info.nightscout.core.pump.common.utils
|
||||
|
||||
import info.nightscout.core.utils.DateTimeUtil
|
||||
import org.junit.jupiter.api.Assertions
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
internal class DateTimeUtilUTest {
|
||||
|
||||
@Test fun getaTechDateDifferenceAsMinutes() {
|
||||
val dt1 = 20191001182301L
|
||||
val dt2 = 20191001192805L
|
||||
val aTechDateDifferenceAsMinutes = DateTimeUtil.getATechDateDifferenceAsMinutes(dt1, dt2)
|
||||
Assertions.assertEquals(65, aTechDateDifferenceAsMinutes)
|
||||
}
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package info.nightscout.pump.common.defs;
|
||||
|
||||
/**
|
||||
* Created by andy on 1/20/19.
|
||||
*/
|
||||
|
||||
public enum BasalProfileStatus {
|
||||
|
||||
NotInitialized, //
|
||||
ProfileOK, //
|
||||
ProfileChanged, //
|
||||
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
package info.nightscout.pump.common.sync;
|
||||
|
||||
import info.nightscout.interfaces.pump.defs.PumpType;
|
||||
|
||||
public interface PumpSyncEntriesCreator {
|
||||
|
||||
long generateTempId(Object dataObject);
|
||||
|
||||
PumpType model();
|
||||
|
||||
String serialNumber();
|
||||
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package info.nightscout.pump.common.sync
|
||||
|
||||
import info.nightscout.interfaces.pump.defs.PumpType
|
||||
|
||||
interface PumpSyncEntriesCreator {
|
||||
|
||||
fun generateTempId(objectA: Any): Long
|
||||
fun model(): PumpType
|
||||
fun serialNumber(): String
|
||||
}
|
|
@ -43,7 +43,7 @@ object ProfileUtil {
|
|||
// }
|
||||
// return if (stringBuilder.length > 3) stringBuilder.substring(0, stringBuilder.length - 2) else stringBuilder.toString()
|
||||
|
||||
var entriesCopy = profile.getBasalValues()
|
||||
val entriesCopy = profile.getBasalValues()
|
||||
|
||||
for (i in entriesCopy.indices) {
|
||||
val current = entriesCopy[i]
|
||||
|
|
Loading…
Reference in a new issue