AndroidTestCase
public
class
AndroidTestCase
extends Object
| java.lang.Object | |
| ↳ | android.test.AndroidTestCase |
This class was deprecated
in API level 24.
Use
InstrumentationRegistry instead. New tests should be written using the
Android Testing Support Library.
Extend this if you need to access Resources or other things that depend on Activity Context.
Summary
Fields | |
|---|---|
protected
Context |
mContext
|
Public constructors | |
|---|---|
AndroidTestCase()
|
|
Public methods | |
|---|---|
void
|
assertActivityRequiresPermission(String packageName, String className, String permission)
Asserts that launching a given activity is protected by a particular permission by
attempting to start the activity and validating that a |
void
|
assertReadingContentUriRequiresPermission(Uri uri, String permission)
Asserts that reading from the content uri requires a particular permission by |