Add unit test on DefaultOnBoardingLogoResIdProvider

This commit is contained in:
Benoit Marty 2025-08-26 09:41:10 +02:00
parent 6e4f034bc1
commit 1a0e625fa9

View file

@ -0,0 +1,25 @@
/*
* Copyright 2025 New Vector Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.features.login.impl.screens.onboarding
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class DefaultOnBoardingLogoResIdProviderTest {
@Test
fun `when onboarding_logo resource exists, return its resId`() {
val context = InstrumentationRegistry.getInstrumentation().context
val sut = DefaultOnBoardingLogoResIdProvider(context)
val result = sut.get()
assertThat(result).isNull()
}
}