Monday, April 15, 2013

Android - Robolectric- Unit testing send SMS

Sending SMS in android is so simple, you just have to get the default SMSManager and call the sendTextMessage

Android Code :

Testing the above code is even simpler,
1) Get the shadowSMSManager
2) From it, we can get the lastSentTextMessageParams, which has the details abt the last sent SMS.
3) Assert with the expected values

Robolectric Test :

1 comment:

  1. need professional help in assembling the desk top system.
    Located at chennai .
    Pls mail back if u can help me with this - destahead@gmail.com

    Mother board Gigabyte GA B85M DS3H LGA1150 INTEL B85 HDMI SATA 6GB/S USB 3.0 MICRO ATX INTEL MOTHERBOARD
    graphic card ASUS GTX 750TI OC 2GD5 GEFORCE GTX 750TI 2GB 128BIT GDDR5 PCI EXPRESS 3.0 HDCP
    RAM CRUCIAL BALLISTIX SPORT 32GB (8GBX4) DDR3 1600 MT/S (PC3 -12800) CL9 @1.5 V UDIMM 240 PIN MEMORY
    SSD KINGSTON DIGITAL 120GB SSD V300 SATA 32.5 WITH ADAPTER SOLID STATE DRIVE 2.5 INCH SV 300S37A /120G
    PROCESSOR INTEL PROCESSOR I7 4770 (8M CACHE UPTO 3.9HZ)
    SMPS SEASONIC 550 WATTS
    HD WESTERN DIGITAL BLACK 2TB
    can you suggest a good cabinet with good cable management and airflow and good budget also?

    ReplyDelete