ProjectLaogai/app/src/androidTest/java/org/mosad/seil0/projectlaogai/ExampleInstrumentedTest.kt

25 lines
680 B
Kotlin
Raw Normal View History

2018-10-24 18:22:05 +02:00
package org.mosad.seil0.projectlaogai
2020-08-10 15:11:36 +02:00
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
2018-10-24 18:22:05 +02:00
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.
2020-08-10 15:11:36 +02:00
val appContext = InstrumentationRegistry.getInstrumentation().context
2018-10-24 18:22:05 +02:00
assertEquals("org.mosad.seil0.projectlaogai", appContext.packageName)
}
}