Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12182bc2 authored by quddusc's avatar quddusc Committed by Android (Google) Code Review
Browse files

Merge "docs: Fixed deprecated constructor. Bug: 10581815" into klp-docs

parents 240aca33 8f543418
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -443,12 +443,11 @@ import com.android.example.spinner.SpinnerActivity;
  </p>
  </p>
<pre>
<pre>
  public SpinnerActivityTest() {
  public SpinnerActivityTest() {
    super("com.android.example.spinner", SpinnerActivity.class);
    super(SpinnerActivity.class);
  } // end of SpinnerActivityTest constructor definition
  } // end of SpinnerActivityTest constructor definition
</pre>
</pre>
<p>
<p>
  This calls the superclass constructor with the Android package name (<code>com.android.example.spinner</code>)and main activity's class
  This calls the superclass constructor with the main activity's class (<code>SpinnerActivity.class</code>) for the application under test. Android uses this information to find the application and activity to test.
  (<code>SpinnerActivity.class</code>) for the application under test. Android uses this information to find the application and activity to test.
</p>
</p>
<p>
<p>
  You are now ready to add tests, by adding test methods to the class.
  You are now ready to add tests, by adding test methods to the class.