mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-03-30 06:11:55 +02:00
Dependency upgrades, running on AS 4.1
This commit is contained in:
@@ -20,6 +20,10 @@ class DetailViewModel @Inject constructor(
|
||||
val rocketName = map(successData) {
|
||||
it.rocketName
|
||||
}
|
||||
get() {
|
||||
loadData()
|
||||
return field
|
||||
}
|
||||
|
||||
val description = map(successData) {
|
||||
it.missionDescription
|
||||
@@ -30,10 +34,6 @@ class DetailViewModel @Inject constructor(
|
||||
}
|
||||
//endregion
|
||||
|
||||
init {
|
||||
loadData()
|
||||
}
|
||||
|
||||
//region Functions
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,7 +8,7 @@ import kotlinx.coroutines.test.setMain
|
||||
import org.junit.jupiter.api.AfterEach
|
||||
import org.junit.jupiter.api.BeforeEach
|
||||
|
||||
@UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
@OptIn(ExperimentalCoroutinesApi::class)
|
||||
abstract class BaseTestWithMainThread {
|
||||
|
||||
protected val dispatcher = TestCoroutineDispatcher()
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test
|
||||
*
|
||||
* See [testing documentation](http://d.android.com/tools/testing).
|
||||
*/
|
||||
@UseExperimental(ExperimentalCoroutinesApi::class)
|
||||
class DetailViewModelTest : BaseTestWithMainThread() {
|
||||
|
||||
private val getLaunchDetails: GetLaunchDetails<LaunchDetailItem> = mockk(relaxed = true)
|
||||
|
||||
Reference in New Issue
Block a user