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
Rx operators which involve asynchronous actions schedule those actions using a scheduler. If you take a look at all the operators in [Observable](http://reactivex.io/RxJava/javadoc/rx/Observable.html), you will see that such operators have overloads that take a scheduler. This is the way that you can supplement their real-time schedulers for your `TestScheduler`.
155
155
156
-
Here is an example where we will test the output of `Observable.interval` against what we expect it to emit.
156
+
Here is an [example](/tests/java/itrx/chapter4/testing/ExampleExample.java) where we will test the output of `Observable.interval` against what we expect it to emit.
157
157
158
158
```java
159
159
@Test
@@ -176,7 +176,7 @@ This is useful for testing small, self-contained pieces of Rx code, such as cust
176
176
177
177
### TestSubscriber
178
178
179
-
In the test above, we manually collected the values emitted and compared them against what we expected. This process is common enough in tests that Rx comes packaged with `TestScubscriber`, which will do that for us. Its event handlers will collect every notification received and make them available for us to inspect. With `TestSubscriber` our previous test becomes:
179
+
In the test above, we manually collected the values emitted and compared them against what we expected. This process is common enough in tests that Rx comes packaged with `TestScubscriber`, which will do that for us. Its event handlers will collect every notification received and make them available for us to inspect. With `TestSubscriber` our [previous test becomes](/tests/java/itrx/chapter4/testing/TestSubscriberExample.java):
0 commit comments