BaseUIThreadViewModelTest
abstract class BaseUIThreadViewModelTest<Configuration, Context : BaseUIThreadViewModelTest.ViewModelTestContext<ViewModel>, ViewModel : LifecycleViewModel> : BaseUIThreadTest<Configuration, Context>
Deprecated
This feature has been deprecated. It is recommended to use Compose Multiplatform instead.
A BaseUIThreadTest that takes a BaseUIThreadViewModelTest.ViewModelTestContext
Types
Link copied to clipboard
open class LazyViewModelTestContext<ViewModel : LifecycleViewModel>(coroutineScope: CoroutineScope, createViewModel: () -> ViewModel) : BaseUIThreadViewModelTest.ViewModelTestContext<ViewModel> , CoroutineScope
ViewModelTestContext that lazily creates the view model
Link copied to clipboard
A BaseUIThreadTest.TestContext that provides a LifecycleViewModel
Properties
Link copied to clipboard
abstract val createTestContextWithConfiguration: suspend (configuration: Configuration, scope: CoroutineScope) -> Context
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
fun testOnUIThread(configuration: Configuration, cancelScopeAfterTest: Boolean, block: suspend Context.() -> Unit): TestResult