Cleanup example unit/instrumentation tests

This commit is contained in:
Nicola Corti 2024-04-03 08:55:22 +01:00
parent 555e87264a
commit c792416509
No known key found for this signature in database
GPG Key ID: FE4AB83553990F37
3 changed files with 0 additions and 42 deletions

View File

@ -107,10 +107,6 @@ dependencies {
implementation(libs.lifecycle.livedata) implementation(libs.lifecycle.livedata)
implementation(libs.lifecycle.service) implementation(libs.lifecycle.service)
/* Testing */
androidTestImplementation(libs.androidx.test.junit)
androidTestImplementation(libs.androidx.test.espressoCore)
/* Design */ /* Design */
implementation(libs.material) implementation(libs.material)

View File

@ -1,22 +0,0 @@
package com.github.libretube
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
/**
* 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.github.libretube", appContext.packageName)
}
}

View File

@ -1,16 +0,0 @@
package com.github.libretube
import org.junit.Assert.assertEquals
import org.junit.Test
/**
* 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)
}
}