make channel unit tests

This commit is contained in:
geeksville 2020-03-17 14:56:06 -07:00
parent 40a142064f
commit bbd76ab75a
4 changed files with 34 additions and 25 deletions

View file

@ -1,13 +1,11 @@
package com.geeksville.mesh
import androidx.test.platform.app.InstrumentationRegistry
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
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
@ -19,6 +17,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.geeksville.com.geeksville.mesh", appContext.packageName)
assertEquals("com.geeksville.mesh", appContext.packageName)
}
}