Reputation: 217
I have an activity that will receive an intent containing an uri in the onActivityResult method,after the user takes a picture.And after that the imageview are supposed to set that uri using setImageUri method.
How do I write a test that ensures the imageview has set the uri accordingly?Should I use a real uri for test or just any String?
Upvotes: 1
Views: 216
Reputation: 217
In the end I use an image from resource and convert it to URI to test my code:
Uri.parse("android.resource://com.idreamsglobal.idreams/" + R.drawable.arrow)
Upvotes: 1