Skip to content

Releases: MyDogTom/RxTestWrapper

kotlin extensions, api changes

26 Oct 12:54
Compare
Choose a tag to compare

Kotlin extension
Introduced Kotlin extension function test for Observable, Single, Completable and BlockingObservable.
Example: Observable.just("1").test().completed()

API change
Introduced has prefix to make API more natural. List of methods with new name
hasTerminalEvent
hasNoErrors
hasError
hasError
hasNoTerminalEvent
hasNoValues
hasValueCount
hasValues
hasValue
hasValuesAndClear

Initial release

24 Oct 17:26
Compare
Choose a tag to compare

RxTestWrapper covers all methods from TestSubscriber.For creation use one of static factory methods:

  • RxTestWrapper<T> assertThat(Observable<T> observable)
  • RxTestWrapper<T> assertThat(Single<T> single)
  • RxTestWrapper<T> assertThat(Completable completable)
  • RxTestWrapper<T> assertThat(BlockingObservable<T> blockingObservable)