//Extensions for Jetpack Lifecycle/it.czerwinski.android.lifecycle.livedata.test

Package it.czerwinski.android.lifecycle.livedata.test

[androidJvm]

Common testing extensions for Jetpack Lifecycle

Types

Name Summary
TestObserver [androidJvm]
Content
class TestObserver<T> : Observer<T>
More info
A callback testing values emitted by LiveData.


Functions

Name Summary
test [androidJvm]
Content
fun <T> LiveData<T>.test(): TestObserver<T>
More info
Creates a non-forwarding TestObserver observing all values emitted by this LiveData.


[androidJvm]
Content
fun <T> LiveData<T>.test(downstream: Observer<T>): TestObserver<T>
More info
Creates a forwarding TestObserver observing all values emitted by this LiveData.