diff options
| author | Andy Stadler <> | 2009-04-21 11:54:13 -0700 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-04-21 11:54:13 -0700 |
| commit | 1874be3ce763d0be95d6fea885ab6cef01054e7c (patch) | |
| tree | 3fecbaa373a621e212d5bb6dcf38efe29526c3ae /samples/ApiDemos/tests/src/com/example/android/apis/ApiDemosTest.java | |
| parent | 4b1f6975a9e63e6dde636d91d6a71ce56c41c262 (diff) | |
AI 147169: am: CL 147167 am: CL 147162 Emphasize in the javadoc that the "pkg" parameters to
InstrumentationTestCase and its descendants should be the
package manager package name (not the java package name, and
not the test package) of the package holding the Activity
under test.
Added similar notations to the ApiDemos call sites.
JAVADOC ONLY - should be safe change for cupcake sdk.
Original author: stadler
Merged from: //branches/cupcake/...
Original author: android-build
Automated import of CL 147169
Diffstat (limited to 'samples/ApiDemos/tests/src/com/example/android/apis/ApiDemosTest.java')
| -rw-r--r-- | samples/ApiDemos/tests/src/com/example/android/apis/ApiDemosTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/samples/ApiDemos/tests/src/com/example/android/apis/ApiDemosTest.java b/samples/ApiDemos/tests/src/com/example/android/apis/ApiDemosTest.java index 0103da87d..bc174eaa0 100644 --- a/samples/ApiDemos/tests/src/com/example/android/apis/ApiDemosTest.java +++ b/samples/ApiDemos/tests/src/com/example/android/apis/ApiDemosTest.java @@ -24,6 +24,12 @@ import android.test.ActivityInstrumentationTestCase; */ public class ApiDemosTest extends ActivityInstrumentationTestCase<ApiDemos> { + /** + * The first constructor parameter must refer to the package identifier of the + * package hosting the activity to be launched, which is specified in the AndroidManifest.xml + * file. This is not necessarily the same as the java package name of the class - in fact, in + * some cases it may not match at all. + */ public ApiDemosTest() { super("com.example.android.apis", ApiDemos.class); } |
