I haven't tested with the MockContentProvider, but I'm pretty sure that you 
just need to create one in the JUnit setup() routine and clear it in the 
teardown().  Make it a member of the JUnit class.  I saw several detailed posts 
after doing a Google search, have a look 
here:http://www.jayway.com/2011/10/10/using-renamingdelegatingcontext-to-mock-contentresolver-in-android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to