ExampleInstrumentedTest.kt 461 Bytes
Newer Older
konghaorui committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package com.ydl.component

import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4

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)
    }
}