ExampleInstrumentedTest.kt 471 Bytes
Newer Older
konghaorui committed
1 2
package com.ydl.component

YKai committed
3 4
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
konghaorui committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*


@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
    @Test
    fun useAppContext() {
                val appContext = InstrumentationRegistry.getTargetContext()
        assertEquals("com.ydl.component", appContext.packageName)
    }
}