I'm trying to figure a way to test if <uses-permission android:name="android.permission.INTERNET" />
is set in AndroidManifest.xml
, but I can't. Is it possible to do that? Right now I'm using ActivityInstrumentationTestCase2
.
I'm trying to learn testing in Android Studio, and I think that testing that certain uses-permission permissions are set is a good idea at the start of testing the application.
This is how I ended up doing it: