SmsCommunicatorPluginTest 11

This commit is contained in:
Milos Kozak 2019-03-21 21:03:34 +01:00
parent a9992503f6
commit beb50bad44

View file

@ -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();