[sonar] add impl

This commit is contained in:
zhongchao
2023-10-18 14:11:55 +08:00
parent 5043aa8c8f
commit f044cf9a2f
32 changed files with 93 additions and 125 deletions

View File

@@ -1,21 +0,0 @@
package com.mogo.launcer.patch
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import 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.getInstrumentation().targetContext
assertEquals("com.mogo.launcer.patch.test", appContext.packageName)
}
}

View File

@@ -1,16 +0,0 @@
package com.mogo.launcer.patch
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}