Merge pull request #2 from MilosKozak/2186

fix test
This commit is contained in:
Fabrizio Casellato 2019-11-21 09:33:19 +01:00 committed by GitHub
commit f3f5bb0d7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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