fix test
This commit is contained in:
parent
17ea3843ae
commit
820b704bfe
1 changed files with 1 additions and 1 deletions
|
@ -772,7 +772,7 @@ public class SmsCommunicatorPluginTest {
|
||||||
sms = new Sms("1234", "CARBS 1");
|
sms = new Sms("1234", "CARBS 1");
|
||||||
smsCommunicatorPlugin.processSms(sms);
|
smsCommunicatorPlugin.processSms(sms);
|
||||||
Assert.assertEquals("CARBS 1", smsCommunicatorPlugin.getMessages().get(0).text);
|
Assert.assertEquals("CARBS 1", smsCommunicatorPlugin.getMessages().get(0).text);
|
||||||
Assert.assertTrue(smsCommunicatorPlugin.getMessages().get(1).text.contains("To enter 1g at 01:16AM reply with code"));
|
Assert.assertTrue(smsCommunicatorPlugin.getMessages().get(1).text.contains("To enter 1g at"));
|
||||||
String passCode = smsCommunicatorPlugin.getMessageToConfirm().confirmCode;
|
String passCode = smsCommunicatorPlugin.getMessageToConfirm().confirmCode;
|
||||||
smsCommunicatorPlugin.processSms(new Sms("1234", passCode));
|
smsCommunicatorPlugin.processSms(new Sms("1234", passCode));
|
||||||
Assert.assertEquals(passCode, smsCommunicatorPlugin.getMessages().get(2).text);
|
Assert.assertEquals(passCode, smsCommunicatorPlugin.getMessages().get(2).text);
|
||||||
|
|
Loading…
Reference in a new issue