2424import rx .Subscriber ;
2525
2626/**
27- * Subscriber usable for unit testing to perform assertions, inspect received events, or wrap a mocked
28- * Subscriber.
27+ * A {@code TestSubscriber} is a variety of {@link Subscriber} that you can use for unit testing, to perform
28+ * assertions, inspect received events, or wrap a mocked {@code Subscriber} .
2929 */
3030public class TestSubscriber <T > extends Subscriber <T > {
3131
@@ -73,8 +73,8 @@ public void onCompleted() {
7373 }
7474
7575 /**
76- * Get the {@link Notification}s representing each time this Subscriber was notified of sequence completion
77- * via {@link #onCompleted}, as a {@link List}.
76+ * Get the {@link Notification}s representing each time this {@link Subscriber} was notified of sequence
77+ * completion via {@link #onCompleted}, as a {@link List}.
7878 *
7979 * @return a list of Notifications representing calls to this Subscriber's {@link #onCompleted} method
8080 */
@@ -93,7 +93,8 @@ public void onError(Throwable e) {
9393 }
9494
9595 /**
96- * Get the {@link Throwable}s this Subscriber was notified of via {@link #onError} as a {@link List}.
96+ * Get the {@link Throwable}s this {@link Subscriber} was notified of via {@link #onError} as a
97+ * {@link List}.
9798 *
9899 * @return a list of the Throwables that were passed to this Subscriber's {@link #onError} method
99100 */
@@ -109,14 +110,16 @@ public void onNext(T t) {
109110
110111 /**
111112 * Allow calling the protected {@link #request(long)} from unit tests.
113+ *
112114 * @param n
115+ * @warn parameter "n" not described
113116 */
114117 public void requestMore (long n ) {
115118 request (n );
116119 }
117120
118121 /**
119- * Get the sequence of items observed by this Subscriber, as an ordered {@link List}.
122+ * Get the sequence of items observed by this {@link Subscriber} , as an ordered {@link List}.
120123 *
121124 * @return a list of items observed by this Subscriber, in the order in which they were observed
122125 */
@@ -125,7 +128,7 @@ public List<T> getOnNextEvents() {
125128 }
126129
127130 /**
128- * Assert that a particular sequence of items was received by this Subscriber in order.
131+ * Assert that a particular sequence of items was received by this {@link Subscriber} in order.
129132 *
130133 * @param items
131134 * the sequence of items expected to have been observed
@@ -174,8 +177,8 @@ public void assertNoErrors() {
174177
175178
176179 /**
177- * Blocks until this Subscriber receives a notification that the Observable is complete (either an
178- * {@code onCompleted} or {@code onError} notification).
180+ * Blocks until this {@link Subscriber} receives a notification that the {@code Observable} is complete
181+ * (either an {@code onCompleted} or {@code onError} notification).
179182 *
180183 * @throws RuntimeException
181184 * if the Subscriber is interrupted before the Observable is able to complete
@@ -189,8 +192,8 @@ public void awaitTerminalEvent() {
189192 }
190193
191194 /**
192- * Blocks until this Subscriber receives a notification that the Observable is complete (either an
193- * {@code onCompleted} or {@code onError} notification), or until a timeout expires.
195+ * Blocks until this {@link Subscriber} receives a notification that the {@code Observable} is complete
196+ * (either an {@code onCompleted} or {@code onError} notification), or until a timeout expires.
194197 *
195198 * @param timeout
196199 * the duration of the timeout
@@ -208,10 +211,10 @@ public void awaitTerminalEvent(long timeout, TimeUnit unit) {
208211 }
209212
210213 /**
211- * Blocks until this Subscriber receives a notification that the Observable is complete (either an
212- * {@code onCompleted} or {@code onError} notification), or until a timeout expires; if the Subscriber
213- * is interrupted before either of these events take place, this method unsubscribes the Subscriber from the
214- * Observable).
214+ * Blocks until this {@link Subscriber} receives a notification that the {@code Observable} is complete
215+ * (either an {@code onCompleted} or {@code onError} notification), or until a timeout expires; if the
216+ * Subscriber is interrupted before either of these events take place, this method unsubscribes the
217+ * Subscriber from the Observable).
215218 *
216219 * @param timeout
217220 * the duration of the timeout
@@ -227,7 +230,8 @@ public void awaitTerminalEventAndUnsubscribeOnTimeout(long timeout, TimeUnit uni
227230 }
228231
229232 /**
230- * Returns the last thread that was in use when an item or notification was received by this Subscriber.
233+ * Returns the last thread that was in use when an item or notification was received by this
234+ * {@link Subscriber}.
231235 *
232236 * @return the {@code Thread} on which this Subscriber last received an item or notification from the
233237 * Observable it is subscribed to
0 commit comments