These are chat archives for ReactiveX/RxJava

10th
Nov 2016
Amir HMovahed
@amirhaghighim_twitter
Nov 10 2016 13:54
Hi im very new to this topic do you know any good source for testing rx java?
Amir HMovahed
@amirhmd
Nov 10 2016 14:17
hey do you know how to use the subject to test our observable?\
Dorus
@Dorus
Nov 10 2016 15:15
@AmirHMovahed You should not use subjects to test your observable. Look into the testScheduler.
Or a quick goodle leads me to TestSubscriber.
Amir HMovahed
@amirhmd
Nov 10 2016 15:46
@Dorus i create an interface which receive Iterable and return Observable
Dorus
@Dorus
Nov 10 2016 15:48
@AmirHMovahed You mean the existing function from?
Amir HMovahed
@amirhmd
Nov 10 2016 15:48
I want to test the implementation to make sure this object emit items in order he receive so i come up with the idea of using ReplaySubject
Yes
I use the from function
Then i want to add more complex scenario
To have reactive functionality
Using create
Add schedular
I want to use the tdd approach
So i start from the simplest approach
@Dorus am i on the right path?
There are also plenty of blogs to find on the subject if you google
i dont have any good links myself, not usually on RxJava, hopefully some others here can provide good ones.
i'm not even sure if i'm linking the right tests here :)
Ah there, line 101 is good.
Amir HMovahed
@amirhmd
Nov 10 2016 15:57
@Dorus thanks