[#485] Test Failure For UpdateViewModel
This commit is contained in:
parent
f6a6bedf2b
commit
386c7d7793
|
@ -37,9 +37,11 @@ dependencies {
|
|||
androidTestImplementation(projects.uiLib)
|
||||
androidTestImplementation(projects.uiDesignLib)
|
||||
androidTestImplementation(projects.testLib)
|
||||
androidTestImplementation(projects.spackleAndroidLib)
|
||||
|
||||
androidTestImplementation(libs.bundles.androidx.test)
|
||||
androidTestImplementation(libs.bundles.androidx.compose.core)
|
||||
androidTestImplementation(libs.bundles.play.core)
|
||||
|
||||
androidTestImplementation(libs.androidx.compose.test.junit)
|
||||
androidTestImplementation(libs.androidx.navigation.compose)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package co.electriccoin.zcash.ui.screen.update.view
|
||||
package co.electriccoin.zcash.ui.integration.test.screen.update.viewmodel
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Context
|
|
@ -1,14 +1,14 @@
|
|||
package co.electriccoin.zcash.ui.screen.update.integration
|
||||
package co.electriccoin.zcash.ui.integration.test.screen.update.viewmodel
|
||||
|
||||
import androidx.compose.ui.test.junit4.createAndroidComposeRule
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import androidx.test.filters.MediumTest
|
||||
import co.electriccoin.zcash.ui.common.UiTestingActivity
|
||||
import co.electriccoin.zcash.test.UiTestPrerequisites
|
||||
import co.electriccoin.zcash.ui.integration.test.common.IntegrationTestingActivity
|
||||
import co.electriccoin.zcash.ui.screen.update.AppUpdateChecker
|
||||
import co.electriccoin.zcash.ui.screen.update.fixture.UpdateInfoFixture
|
||||
import co.electriccoin.zcash.ui.screen.update.model.UpdateInfo
|
||||
import co.electriccoin.zcash.ui.screen.update.model.UpdateState
|
||||
import co.electriccoin.zcash.ui.screen.update.view.AppUpdateCheckerMock
|
||||
import co.electriccoin.zcash.ui.screen.update.viewmodel.UpdateViewModel
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.cancel
|
||||
|
@ -16,17 +16,17 @@ import kotlinx.coroutines.flow.collectIndexed
|
|||
import kotlinx.coroutines.flow.take
|
||||
import kotlinx.coroutines.test.runTest
|
||||
import org.junit.After
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertNotNull
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Before
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertNotNull
|
||||
import kotlin.test.assertNull
|
||||
|
||||
@ExperimentalCoroutinesApi
|
||||
class UpdateViewModelTest {
|
||||
class UpdateViewModelTest : UiTestPrerequisites() {
|
||||
@get:Rule
|
||||
val composeTestRule = createAndroidComposeRule<UiTestingActivity>()
|
||||
val composeTestRule = createAndroidComposeRule<IntegrationTestingActivity>()
|
||||
|
||||
private lateinit var viewModel: UpdateViewModel
|
||||
private lateinit var checker: AppUpdateCheckerMock
|
|
@ -4,10 +4,10 @@ import android.content.Context
|
|||
import android.content.Intent
|
||||
import androidx.test.core.app.ApplicationProvider
|
||||
import androidx.test.filters.SmallTest
|
||||
import kotlin.test.Test
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertNotNull
|
||||
import org.junit.Test
|
||||
import kotlin.test.assertContains
|
||||
import kotlin.test.assertEquals
|
||||
import kotlin.test.assertNotNull
|
||||
|
||||
class PlayStoreUtilTest {
|
||||
|
||||
|
|
Loading…
Reference in New Issue