Try RenamingDelegatingContext. It uses a normal Context for most stuff, but allows you to prefix file and database names to avoid munging your production stuff.
Elk! On Jan 19, 7:16 am, Mattias Svala <[email protected]> wrote: > Hello! > > I would like to be able to write tests for my database code and have them > run without touching the database that my actual application uses. It would > be OK for the database tests to start with an empty or non existing database > each time the tests are run. > > Is this possible? > > I would have guessed that I could use IsolatedContext in some way to achieve > this, but I have not been able to figure out how. Perhaps there is some > other way to have my database tests run isolated from the application's > database? > > :.:: mattias -- 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

