diff options
author | Andy Stadler <> | 2009-04-10 16:24:47 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-10 16:24:47 -0700 |
commit | f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 (patch) | |
tree | 1dd68eeddbfa83d571a3544d6d2e25ba9be21b49 /test-runner | |
parent | 1eb75a0b3770177c3f0d0c2e843f80fc34451ef5 (diff) | |
download | frameworks_base-f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75.zip frameworks_base-f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75.tar.gz frameworks_base-f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75.tar.bz2 |
AI 145778: Manual merge changes 145382-145384 from cupcake.
Automated import of CL 145778
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 +} |