fix tests

This commit is contained in:
Milos Kozak 2019-11-20 21:50:02 +01:00
parent 1f4f3fb687
commit baf77e2e67

View file

@ -302,6 +302,9 @@ public class SmsCommunicatorPlugin extends PluginBase {
else else
sendSMS(new Sms(receivedSms.phoneNumber, R.string.wrongformat)); sendSMS(new Sms(receivedSms.phoneNumber, R.string.wrongformat));
break; break;
}
// splitted switch to fix bug in mockito
switch (splitted[0].toUpperCase()) {
case "CAL": case "CAL":
if (!remoteCommandsAllowed) if (!remoteCommandsAllowed)
sendSMS(new Sms(receivedSms.phoneNumber, R.string.smscommunicator_remotecommandnotallowed)); sendSMS(new Sms(receivedSms.phoneNumber, R.string.smscommunicator_remotecommandnotallowed));