| 1 | package com.plugin.androidTvCheck |
| 2 | |
| 3 | import androidx.test.ext.junit.runners.AndroidJUnit4 |
| 4 | import androidx.test.platform.app.InstrumentationRegistry |
| 5 | import org.junit.Assert.* |
| 6 | import org.junit.Test |
| 7 | import org.junit.runner.RunWith |
| 8 | |
| 9 | /** |
| 10 | * Instrumented test, which will execute on an Android device. |
| 11 | * |
| 12 | * See [testing documentation](http://d.android.com/tools/testing). |
| 13 | */ |
| 14 | @RunWith(AndroidJUnit4::class) |
| 15 | class ExampleInstrumentedTest { |
| 16 | @Test |
| 17 | fun useAppContext() { |
| 18 | // Context of the app under test. |
| 19 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext |
| 20 | assertEquals("com.plugin.android-tv-check", appContext.packageName) |
| 21 | } |
| 22 | } |