Re: [android-developers] ContentProvider contains dirty data from a previous JUnit test

2014-02-22 Thread Code Guru
The `ContentProvider` is created indirectly by calling `getContentResolver()` from inside a method of the `Activity` under test. I will have to look into using `ApplicationTestCase` as you suggest. On Sat, Feb 22, 2014 at 11:44 PM, Danny D daniel.m.dev...@gmail.com wrote: Is the object

Re: [android-developers] ContentProvider contains dirty data from a previous JUnit test

2014-02-22 Thread Code Guru
My current test class extends `ActivityInstrumentationTestCase2`. If I change it to extend `ApplicationTestCase`, how do I start an activity? On Sun, Feb 23, 2014 at 12:16 AM, Code Guru codegur...@gmail.com wrote: The `ContentProvider` is created indirectly by calling `getContentResolver

Re: [android-developers] ContentProvider contains dirty data from a previous JUnit test

2014-02-23 Thread Code Guru
In this case, I am testing the activities of my app with ActivityInstrumentationTestCase2. (I also have tests for the ContentProvider using ProviderTestCase2.) The two tests that I outlined earlier are for the data entry activity. I want to verify that the data entered is inserted into the