I am trying to test my DB using ProviderTestCase2<T>
. I can see the test DB being created. As such I suppose, the tested content provider should use the test DB. But as soon as I try any calls against the MockContentResolver
(or the one created with newResolverWithContentProviderFromSql
), I get an UnsupportedOperationException
. This is documented for the MockContentResolver as normal behavior. As such I am a bit unsure on the purpose of the ProviderTestCase2.
How do you test your content providers?
Thanks