Issue
This is my intent:
-Intent { act=android.intent.action.VIEW dat=smsto:[email protected] (has extras) } handling packages:[[com.android.messaging]], extras:[Bundle[{sms_body=myText}]])
How matcher should look like in order to assert data like this:
dat=smsto:[email protected]
For example this won't work:
intented(hasData("[email protected]");
Solution
Try this :
intented(hasData(Uri.parse("smsto:[email protected]"));
It should work !
(Replace 'xxx's with actual characters.)
Answered By - Abhinav Puri
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.