UIThreadViewModelTest
abstract class UIThreadViewModelTest<Context : UIThreadViewModelTest.ViewModelTestContext<ViewModel>, ViewModel : LifecycleViewModel> : UIThreadTest<Context>
A UIThreadTest that takes a UIThreadViewModelTest.ViewModelTestContext
Inheritors
Types
Link copied to clipboard
open class LazyViewModelTestContext<ViewModel : LifecycleViewModel>(coroutineScope: CoroutineScope, createViewModel: () -> ViewModel) : BaseUIThreadViewModelTest.LazyViewModelTestContext<ViewModel> , UIThreadViewModelTest.ViewModelTestContext<ViewModel>
BaseUIThreadViewModelTest.LazyViewModelTestContext that lazily creates the view model
Link copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
open override val createTestContextWithConfiguration: suspend (configuration: Unit, scope: CoroutineScope) -> Context
Functions
Link copied to clipboard
Link copied to clipboard
fun testOnUIThread(configuration: Unit, cancelScopeAfterTest: Boolean, block: suspend Context.() -> Unit)