jeudi 1 octobre 2020

How I can test arguments in Observable RxJava

I have some method:

repository.get(arg1, arg2, arg3)

Method return Single<List<SomeObject>>

I need testing that Single was called onSubscribe() with specific arguments.

repository.get(arg1, arg2, arg3)
            .test()
            .assertSubscribed()

This method ignores arguments which I put in method repository.get().

How I can test that subscribe called with certain arguments?

Aucun commentaire:

Enregistrer un commentaire