From 8f5434183ead0c36e1f10d40897e585c9b7cafca Mon Sep 17 00:00:00 2001 From: quddusc Date: Fri, 20 Dec 2013 14:07:45 -0800 Subject: [PATCH] docs: Fixed deprecated constructor. Bug: 10581815 Change-Id: I057acf1ad3037418c7247f865b6cb0847a9eb7b6 --- docs/html/tools/testing/activity_test.jd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/html/tools/testing/activity_test.jd b/docs/html/tools/testing/activity_test.jd index 2d1a5bfec5412..036407a02eff2 100644 --- a/docs/html/tools/testing/activity_test.jd +++ b/docs/html/tools/testing/activity_test.jd @@ -443,12 +443,11 @@ import com.android.example.spinner.SpinnerActivity;

   public SpinnerActivityTest() {
-    super("com.android.example.spinner", SpinnerActivity.class);
+    super(SpinnerActivity.class);
   } // end of SpinnerActivityTest constructor definition
 

- This calls the superclass constructor with the Android package name (com.android.example.spinner)and main activity's class - (SpinnerActivity.class) for the application under test. Android uses this information to find the application and activity to test. + This calls the superclass constructor with the main activity's class (SpinnerActivity.class) for the application under test. Android uses this information to find the application and activity to test.

You are now ready to add tests, by adding test methods to the class.