hongbo-miao/hongbomiao.com

View on GitHub
mobile/mobile-android/app/src/androidTest/java/com/example/hmmobile/ExampleInstrumentedTest.kt

Summary

Maintainability
A
0 mins
Test Coverage
package com.example.hmmobile

import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
    @Test
    fun useAppContext() {
        val appContext = InstrumentationRegistry.getInstrumentation().targetContext
        assertEquals("com.example.hmmobile", appContext.packageName)
    }
}