]> jfr.im git - i.jfr.im-android.git/blame - app/src/androidTest/java/im/jfr/i/ExampleInstrumentedTest.kt
init
[i.jfr.im-android.git] / app / src / androidTest / java / im / jfr / i / ExampleInstrumentedTest.kt
CommitLineData
e9a08ae2
JR
1package im.jfr.i
2
3import androidx.test.platform.app.InstrumentationRegistry
4import androidx.test.ext.junit.runners.AndroidJUnit4
5
6import org.junit.Test
7import org.junit.runner.RunWith
8
9import org.junit.Assert.*
10
11/**
12 * Instrumented test, which will execute on an Android device.
13 *
14 * See [testing documentation](http://d.android.com/tools/testing).
15 */
16@RunWith(AndroidJUnit4::class)
17class ExampleInstrumentedTest {
18 @Test
19 fun useAppContext() {
20 // Context of the app under test.
21 val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 assertEquals("im.jfr.i", appContext.packageName)
23 }
24}