As I read your reply, I'm confused now about what's being tested.  Are you 
testing the ContentProvider or the Activity?  If testing the Activity, it may 
be better to create a MockContentProvider that's responsible for providing back 
the info.  If testing the ContentProvider, skip the Activity and use an 
Application test case, as you get direct control of when its created or 
destroyed.

Sometimes its hard to do, but the goal in testing is to isolate the components 
and build known conditions around them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to