OpenEUICC/app-deps/src/androidTest/java/im/angry/openeuicc_deps/ExampleInstrumentedTest.kt
Peter Cai b580193624 Generate Android.bp and dependencies with LineageOS's GenerateBp plugin
...extract all common dependencies to a new module, app-deps, and then
run LineageOS's GenerateBp plugin based on that. The resulting
Android.bp file is a java_defaults that can be used from the main
Android.bp.

Note that the prebuilt binaries are placed in app-deps/libs by
GenerateBp. This directory is explicitly excluded by .gitignore. These
binaries should be copied to another repository
(android_prebuilts_openeuicc-deps) manually.
2024-01-20 16:36:23 -05:00

24 lines
678 B
Kotlin

package im.angry.openeuicc_deps
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("im.angry.openeuicc_deps.test", appContext.packageName)
}
}