* commit '5ad0e6289119dfaaa50a663e88dc0b978447302c': docs: Fixed deprecated constructor. Bug: 10581815
This commit is contained in:
@@ -443,12 +443,11 @@ import com.android.example.spinner.SpinnerActivity;
|
||||
</p>
|
||||
<pre>
|
||||
public SpinnerActivityTest() {
|
||||
super("com.android.example.spinner", SpinnerActivity.class);
|
||||
super(SpinnerActivity.class);
|
||||
} // end of SpinnerActivityTest constructor definition
|
||||
</pre>
|
||||
<p>
|
||||
This calls the superclass constructor with the Android package name (<code>com.android.example.spinner</code>)and 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.
|
||||
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.
|
||||
</p>
|
||||
<p>
|
||||
You are now ready to add tests, by adding test methods to the class.
|
||||
|
||||
Reference in New Issue
Block a user