diff options
author | Dianne Hackborn <> | 2009-04-13 16:11:55 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-13 16:11:55 -0700 |
commit | 935ae463d495d41155e27feb849768ad2b8b16db (patch) | |
tree | da8889bec20daacb2a85ff98bca0874078e5c1cf /test-runner | |
parent | b3230cb1e33c3de7ae7d63217617606d23943708 (diff) | |
download | frameworks_base-935ae463d495d41155e27feb849768ad2b8b16db.zip frameworks_base-935ae463d495d41155e27feb849768ad2b8b16db.tar.gz frameworks_base-935ae463d495d41155e27feb849768ad2b8b16db.tar.bz2 |
AI 145994: Integrate #145778 from Donut.
Automated import of CL 145994
Diffstat (limited to 'test-runner')
-rw-r--r-- | test-runner/android/test/ProviderTestCase2.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test-runner/android/test/ProviderTestCase2.java b/test-runner/android/test/ProviderTestCase2.java index 714b77b..ac17ebf 100644 --- a/test-runner/android/test/ProviderTestCase2.java +++ b/test-runner/android/test/ProviderTestCase2.java @@ -8,10 +8,15 @@ import android.test.mock.MockContentResolver; import android.database.DatabaseUtils; /** - * If you would like to test a single content provider with an - * {@link android.test.InstrumentationTestCase}, this provides some of the boiler plate in - * {@link #setUp} and {@link #tearDown}. - * @hide pending API council approval + * This TestCase class provides a framework for isolated testing of a single + * ContentProvider. It uses a {@link android.test.mock.MockContentResolver} to + * access the provider, restricts the provider to an isolated area of the + * filesystem (for safely creating & modifying databases & files), and injects + * {@link android.test.IsolatedContext} to isolate the ContentProvider from the + * rest of the running system. + * + * <p>This environment is created automatically by {@link #setUp} and {@link + * #tearDown}. */ public abstract class ProviderTestCase2<T extends ContentProvider> extends AndroidTestCase { @@ -79,4 +84,4 @@ public abstract class ProviderTestCase2<T extends ContentProvider> extends Andro return resolver; } -}
\ No newline at end of file +} |