EtchDroid/app/src/androidTest/java/eu/depau/etchdroid/ExampleInstrumentedTest.kt

23 lines
633 B
Kotlin
Raw Normal View History

2018-08-15 17:04:45 +00:00
package eu.depau.etchdroid
2018-08-12 14:33:11 +00:00
import androidx.test.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4
2018-08-15 17:06:50 +00:00
import org.junit.Assert.assertEquals
2018-08-12 14:33:11 +00:00
import org.junit.Test
import org.junit.runner.RunWith
/**
* 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.getTargetContext()
2018-08-15 17:04:45 +00:00
assertEquals("eu.depau.etchdroid", appContext.packageName)
2018-08-12 14:33:11 +00:00
}
}