You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For each reactive source there is a specific test method.
132
+
```kotlin
133
+
liveData.testCompletableSubscribe(...)
134
+
liveData.testMaybeSubscribe(...)
135
+
liveData.testSingleSubscribe(...)
136
+
```
126
137
127
-
## Testing
138
+
Make sure to include the 'InstantTastExecutorRule' (core-testing) into your tests. Furthermore, the default IoSchedulerHandler (or the scheduler which you used) should be overwritten.
For more tests look into the sample [app](https://github.com/bobekos/ReactiveLiveData/blob/master/app/src/test/java/com/github/bobekos/rxviewmodelexample/viewmodel/UserViewModelTest.kt)
0 commit comments