public class BaseViewModelExtensionsMockKt
| Modifier and Type | Method and Description |
|---|---|
static <VALUE> kotlin.jvm.functions.Function1<VALUE,kotlin.Unit> |
mockObserveWithoutOwner(app.futured.arkitekt.core.BaseViewModel<?> $receiver,
kotlin.jvm.functions.Function0<? extends androidx.lifecycle.LiveData<VALUE>> liveData)
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner
|
static <VALUE> kotlin.jvm.functions.Function1<VALUE,kotlin.Unit> |
mockObserveWithoutOwnerDefaultValue(app.futured.arkitekt.core.BaseViewModel<?> $receiver,
kotlin.jvm.functions.Function0<app.futured.arkitekt.core.livedata.DefaultValueLiveData> liveData)
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner
|
static <VALUE> kotlin.jvm.functions.Function1<VALUE,kotlin.Unit> |
mockObserveWithoutOwnerDefaultValueMediator(app.futured.arkitekt.core.BaseViewModel<?> $receiver,
kotlin.jvm.functions.Function0<app.futured.arkitekt.core.livedata.DefaultValueMediatorLiveData> liveData)
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner
|
@NotNull
public static <VALUE> kotlin.jvm.functions.Function1<VALUE,kotlin.Unit> mockObserveWithoutOwner(@NotNull
app.futured.arkitekt.core.BaseViewModel<?> $receiver,
@NotNull
kotlin.jvm.functions.Function0<? extends androidx.lifecycle.LiveData<VALUE>> liveData)
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner
Captured lambda that is passed to original method. invoke should be called in order to simulate view state change.
Usage:
// GIVEN val capturedObserveLambda = viewModel.mockObserveWithoutOwner { viewState.number }
// WHEN capturedObserveLambda.invoke(...)
@NotNull
public static <VALUE> kotlin.jvm.functions.Function1<VALUE,kotlin.Unit> mockObserveWithoutOwnerDefaultValue(@NotNull
app.futured.arkitekt.core.BaseViewModel<?> $receiver,
@NotNull
kotlin.jvm.functions.Function0<app.futured.arkitekt.core.livedata.DefaultValueLiveData> liveData)
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner
Captured lambda that is passed to original method. invoke should be called in order to simulate view state change.
Usage:
// GIVEN val capturedObserveLambda = viewModel.mockObserveWithoutOwner { viewState.number }
// WHEN capturedObserveLambda.invoke(...)
@NotNull
public static <VALUE> kotlin.jvm.functions.Function1<VALUE,kotlin.Unit> mockObserveWithoutOwnerDefaultValueMediator(@NotNull
app.futured.arkitekt.core.BaseViewModel<?> $receiver,
@NotNull
kotlin.jvm.functions.Function0<app.futured.arkitekt.core.livedata.DefaultValueMediatorLiveData> liveData)
Extension function that helps with mocking of BaseViewModel.observeWithoutOwner
Captured lambda that is passed to original method. invoke should be called in order to simulate view state change.
Usage:
// GIVEN val capturedObserveLambda = viewModel.mockObserveWithoutOwner { viewState.number }
// WHEN capturedObserveLambda.invoke(...)