Created
August 8, 2014 16:18
-
-
Save j-onathan/a1597f0a1901615c74b7 to your computer and use it in GitHub Desktop.
Android Code Example: Sending text messages (SMS) (from https://www.codota.com/android/scenarios/52fcbcd0da0a72dbfe560888/sending-text-messages-sms-?tag=dragonfly)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void shouldStoreLastSentTextMessageParameters() { | |
smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); | |
ShadowSmsManager.TextSmsParams lastParams = shadowSmsManager.getLastSentTextMessageParams(); | |
Assert.assertEquals(testDestinationAddress, lastParams.getDestinationAddress()); | |
Assert.assertEquals(testScAddress, lastParams.getScAddress()); | |
Assert.assertEquals(testText, lastParams.getText()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment