SmsCommunicatorPluginTest 11
This commit is contained in:
parent
a9992503f6
commit
beb50bad44
1 changed files with 8 additions and 0 deletions
|
@ -685,6 +685,14 @@ public class SmsCommunicatorPluginTest {
|
||||||
Assert.assertEquals("Calibration sent. Receiving must be enabled in xDrip.", smsCommunicatorPlugin.messages.get(3).text);
|
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
|
@Before
|
||||||
public void prepareTests() {
|
public void prepareTests() {
|
||||||
AAPSMocker.mockMainApp();
|
AAPSMocker.mockMainApp();
|
||||||
|
|
Loading…
Reference in a new issue