TestObserver to easily test LiveData and make assertions on them.
Full Changelog: https://github.com/jraska/livedata-testing/compare/1.2.0...1.3.0
testImplementation 'com.jraska.livedata:testing-ktx:1.3.0'
testImplementation 'com.jraska.livedata:testing:1.3.0'
Kotlin:
testImplementation 'com.jraska.livedata:testing-ktx:1.2.0'
Java:
testImplementation 'com.jraska.livedata:testing:1.2.0'
livedata:2.2.0
nowKotlin users:
testImplementation 'com.jraska.livedata:testing-ktx:1.1.2'
Java users:
testImplementation 'com.jraska.livedata:testing:1.1.2'
#36: Adding Hook for on changed value
#40: Adding assertion to all values received by TestObserver
#41: Better error message for TestObserver.assertValue(predicate)
Kotlin users:
testImplementation 'com.jraska.livedata:testing-ktx:1.1.0'
Java users:
testImplementation 'com.jraska.livedata:testing:1.1.0'
API is now stable and will be maintained.
#30: Improved docs #31: Remove deprecated dispose() method
Kotlin users:
testImplementation 'com.jraska.livedata:testing-ktx:1.0.0'
Java users:
testImplementation 'com.jraska.livedata:testing:1.0.0'
Compatibility release for users not using yet androidx
package
#27: Add map
operator for complex data structures assertions.
testImplementation 'com.jraska.livedata:testing:0.6.0'
testImplementation 'com.jraska.livedata:testing-ktx:0.6.0' // If you are Kotlin positive
#23 : Adding TestLifecycle
to test LiveData
with lifecycle changes
testImplementation 'com.jraska.livedata:testing:0.5.0'
testImplementation 'com.jraska.livedata:testing-ktx:0.5.0' // If you are Kotlin positive
#19: Awaiting methods for multithreading
testImplementation 'com.jraska.livedata:testing:0.4.0'
testImplementation 'com.jraska.livedata:testing-ktx:0.4.0' // If you are Kotlin positive