EtchDroid/app/src/androidTest/java/eu/depau/etchdroid/ExampleInstrumentedTest.kt
Davide Depau 53dc07490c Complete app redesign
- Switched to AndroidX namespace
- Switched from Fragments to Activities
- Automatically detects USB drives on (dis)connection
- UX is simpler, less taps are needed
2018-09-01 03:06:06 +02:00

23 lines
633 B
Kotlin

package eu.depau.etchdroid
import androidx.test.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4
import org.junit.Assert.assertEquals
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()
assertEquals("eu.depau.etchdroid", appContext.packageName)
}
}