diff options
Diffstat (limited to 'test-runner/src')
5 files changed, 33 insertions, 2 deletions
diff --git a/test-runner/src/android/test/ActivityInstrumentationTestCase2.java b/test-runner/src/android/test/ActivityInstrumentationTestCase2.java index 24b125e..c4bcf31 100644 --- a/test-runner/src/android/test/ActivityInstrumentationTestCase2.java +++ b/test-runner/src/android/test/ActivityInstrumentationTestCase2.java @@ -37,6 +37,12 @@ import java.lang.reflect.Method; * New tests should be written using this base class. * * <p>If you prefer an isolated unit test, see {@link android.test.ActivityUnitTestCase}. + * + * <div class="special reference"> + * <h3>Developer Guides</h3> + * <p>For more information about application testing, read the + * <a href="{@docRoot}guide/topics/testing/index.html">Testing</a> developer guide.</p> + * </div> */ public abstract class ActivityInstrumentationTestCase2<T extends Activity> extends ActivityTestCase { diff --git a/test-runner/src/android/test/InstrumentationTestRunner.java b/test-runner/src/android/test/InstrumentationTestRunner.java index 3d81d00..91e403e 100644 --- a/test-runner/src/android/test/InstrumentationTestRunner.java +++ b/test-runner/src/android/test/InstrumentationTestRunner.java @@ -54,7 +54,15 @@ import junit.textui.ResultPrinter; /** * An {@link Instrumentation} that runs various types of {@link junit.framework.TestCase}s against - * an Android package (application). Typical usage: + * an Android package (application). + * + * <div class="special reference"> + * <h3>Developer Guides</h3> + * <p>For more information about application testing, read the + * <a href="{@docRoot}guide/topics/testing/index.html">Testing</a> developer guide.</p> + * </div> + * + * <h3>Typical Usage</h3> * <ol> * <li>Write {@link junit.framework.TestCase}s that perform unit, functional, or performance tests * against the classes in your package. Typically these are subclassed from: diff --git a/test-runner/src/android/test/ServiceTestCase.java b/test-runner/src/android/test/ServiceTestCase.java index 8fad5d6..06c1c5b 100644 --- a/test-runner/src/android/test/ServiceTestCase.java +++ b/test-runner/src/android/test/ServiceTestCase.java @@ -34,6 +34,12 @@ import java.util.Random; * Service, and hooks with which you can inject various dependencies and control * the environment in which your Service is tested. * + * <div class="special reference"> + * <h3>Developer Guides</h3> + * <p>For more information about application testing, read the + * <a href="{@docRoot}guide/topics/testing/index.html">Testing</a> developer guide.</p> + * </div> + * * <p><b>Lifecycle Support.</b> * A Service is accessed with a specific sequence of * calls, as described in the diff --git a/test-runner/src/android/test/mock/MockContentResolver.java b/test-runner/src/android/test/mock/MockContentResolver.java index 26eb8e4..6c91f4e 100644 --- a/test-runner/src/android/test/mock/MockContentResolver.java +++ b/test-runner/src/android/test/mock/MockContentResolver.java @@ -43,6 +43,12 @@ import java.util.Map; * Users can also set an authority's entry in the map to null, so that a provider is completely * mocked out. * </p> + * + * <div class="special reference"> + * <h3>Developer Guides</h3> + * <p>For more information about application testing, read the + * <a href="{@docRoot}guide/topics/testing/index.html">Testing</a> developer guide.</p> + * </div> */ public class MockContentResolver extends ContentResolver { diff --git a/test-runner/src/android/test/mock/package.html b/test-runner/src/android/test/mock/package.html index 0f1bc6f4..29b2d80 100644 --- a/test-runner/src/android/test/mock/package.html +++ b/test-runner/src/android/test/mock/package.html @@ -1,5 +1,10 @@ <HTML> <BODY> -Utility classes providing stubs or mocks of various Android framework building blocks. +<p>Utility classes providing stubs or mocks of various Android framework building blocks.</p> + +<p>For more information, see the +<a href="{@docRoot}guide/topics/testing/index.html">Testing</a> developer guide.</p> +{@more} + </BODY> </HTML> |