Something went wrong. Try again.
My First Android Application, created as a part of learning Android Application Development using Kotlin - (Random Selector App)
Something went wrong. Try again.
12345678910111213141516171819202122232425package com.example.dinnerdecider
import android.support.test.InstrumentationRegistryimport android.support.test.runner.AndroidJUnit4
import org.junit.Testimport 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. val appContext = InstrumentationRegistry.getTargetContext() assertEquals("com.example.dinnerdecider", appContext.packageName) }}