From 3713f772d02012907209bff21178e461f8244a70 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 28 Jan 2020 11:11:01 +0100 Subject: [PATCH] fix test --- .../general/smsCommunicator/SmsCommunicatorPluginTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java b/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java index a14513e7c0..baa0201ab7 100644 --- a/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java +++ b/app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java @@ -39,6 +39,7 @@ import info.nightscout.androidaps.queue.Callback; import info.nightscout.androidaps.queue.CommandQueue; import info.nightscout.androidaps.utils.DateUtil; import info.nightscout.androidaps.utils.SP; +import info.nightscout.androidaps.utils.T; import info.nightscout.androidaps.utils.XdripCalibrations; import static org.mockito.ArgumentMatchers.any; @@ -674,6 +675,7 @@ public class SmsCommunicatorPluginTest { when(MainApp.getConstraintChecker().applyBolusConstraints(any())).thenReturn(new Constraint<>(1d)); when(DateUtil.now()).thenReturn(1000L); + when(SP.getLong(R.string.key_smscommunicator_remotebolusmindistance, T.msecs(Constants.remoteBolusMinDistance).mins())).thenReturn(15L); //BOLUS 1 smsCommunicatorPlugin.setMessages(new ArrayList<>()); sms = new Sms("1234", "BOLUS 1");