fix tests
This commit is contained in:
parent
1f4f3fb687
commit
baf77e2e67
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue