From beb50bad4411553f79f9bdb009e62c124d083d14 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 21 Mar 2019 21:03:34 +0100 Subject: [PATCH] SmsCommunicatorPluginTest 11 --- .../smsCommunicator/SmsCommunicatorPluginTest.java | 8 ++++++++ 1 file changed, 8 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 d8bf191926..02ffd42d02 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 @@ -685,6 +685,14 @@ public class SmsCommunicatorPluginTest { Assert.assertEquals("Calibration sent. Receiving must be enabled in xDrip.", smsCommunicatorPlugin.messages.get(3).text); } + @Test + public void sendNotificationToAllNumbers() { + smsCommunicatorPlugin.messages = new ArrayList<>(); + smsCommunicatorPlugin.sendNotificationToAllNumbers("abc"); + Assert.assertEquals("abc", smsCommunicatorPlugin.messages.get(0).text); + Assert.assertEquals("abc", smsCommunicatorPlugin.messages.get(1).text); + } + @Before public void prepareTests() { AAPSMocker.mockMainApp();