testing-samples icon indicating copy to clipboard operation
testing-samples copied to clipboard

Sample request: Provider test

Open fejd opened this issue 8 years ago • 1 comments

I'd be interested in seeing a sample of how provider testing should be done without ProviderTestCase2. I'm currently using it, and the deprecated RenamingDelegatingContext for cases where I want to make sure tests are only working with test files, and it works fine, however ProviderTestCase2 relies on the deprecated AndroidTestCase and internally uses the deprecated classes IsolatedContext and RenamingDelegatingContext - so it feels like ProviderTestCase2 is a deprecation candidate.

fejd avatar May 12 '17 09:05 fejd

Test your content provider the article is deprecated, please update.

CoenQian avatar Mar 29 '19 06:03 CoenQian