mirror of
https://github.com/bleackstorm/satiea.git
synced 2026-12-03 07:41:56 +01:00
Add necessary permissions, services, and receivers to support scheduled meal notifications and boot completion handling. Also includes dependency updates and minor test fixes.
22 lines
585 B
Kotlin
22 lines
585 B
Kotlin
package com.example
|
|
|
|
import android.content.Context
|
|
import androidx.test.core.app.ApplicationProvider
|
|
import org.junit.Assert.assertEquals
|
|
import org.junit.Test
|
|
import org.junit.runner.RunWith
|
|
import org.robolectric.RobolectricTestRunner
|
|
import org.robolectric.annotation.Config
|
|
|
|
@RunWith(RobolectricTestRunner::class)
|
|
@Config(sdk = [34])
|
|
class ExampleRobolectricTest {
|
|
|
|
@Test
|
|
fun `read string from context`() {
|
|
val context = ApplicationProvider.getApplicationContext<Context>()
|
|
val appName = context.getString(R.string.app_name)
|
|
assertEquals("Satiéa", appName)
|
|
}
|
|
}
|