Package app.futured.arkitekt.core.viewmodel

Types

ViewModelTest
Link copied to clipboard
open class ViewModelTest
Base class for ViewModel testing.

Functions

mockObserveWithoutOwner
Link copied to clipboard
fun <VALUE> BaseViewModel<*>.mockObserveWithoutOwner(liveData: () -> LiveData<VALUE>): (VALUE) -> Unit
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner
mockObserveWithoutOwnerDefaultValue
Link copied to clipboard
fun <VALUE : Any> BaseViewModel<*>.mockObserveWithoutOwnerDefaultValue(liveData: () -> DefaultValueLiveData<VALUE>): (VALUE) -> Unit
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner
fun <VALUE : Any> BaseViewModel<*>.mockObserveWithoutOwnerDefaultValueMediator(liveData: () -> DefaultValueMediatorLiveData<VALUE>): (VALUE) -> Unit
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner