Skip to content

Commit b187c71

Browse files
committed
Merge pull request ReactiveX#3043 from davidmoten/test-subscriber-javadoc
TestSubscriber javadoc cleanup
2 parents c868ba9 + acb1259 commit b187c71

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/main/java/rx/observers/TestSubscriber.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void onCompleted() {
143143
}
144144

145145
/**
146-
* Get the {@link Notification}s representing each time this {@link Subscriber} was notified of sequence
146+
* Returns the {@link Notification}s representing each time this {@link Subscriber} was notified of sequence
147147
* completion via {@link #onCompleted}, as a {@link List}.
148148
*
149149
* @return a list of Notifications representing calls to this Subscriber's {@link #onCompleted} method
@@ -172,7 +172,7 @@ public void onError(Throwable e) {
172172
}
173173

174174
/**
175-
* Get the {@link Throwable}s this {@link Subscriber} was notified of via {@link #onError} as a
175+
* Returns the {@link Throwable}s this {@link Subscriber} was notified of via {@link #onError} as a
176176
* {@link List}.
177177
*
178178
* @return a list of the Throwables that were passed to this Subscriber's {@link #onError} method
@@ -199,7 +199,7 @@ public void onNext(T t) {
199199
}
200200

201201
/**
202-
* Allow calling the protected {@link #request(long)} from unit tests.
202+
* Allows calling the protected {@link #request(long)} from unit tests.
203203
*
204204
* @param n the maximum number of items you want the Observable to emit to the Subscriber at this time, or
205205
* {@code Long.MAX_VALUE} if you want the Observable to emit items at its own pace
@@ -209,7 +209,7 @@ public void requestMore(long n) {
209209
}
210210

211211
/**
212-
* Get the sequence of items observed by this {@link Subscriber}, as an ordered {@link List}.
212+
* Returns the sequence of items observed by this {@link Subscriber}, as an ordered {@link List}.
213213
*
214214
* @return a list of items observed by this Subscriber, in the order in which they were observed
215215
*/
@@ -218,7 +218,7 @@ public List<T> getOnNextEvents() {
218218
}
219219

220220
/**
221-
* Assert that a particular sequence of items was received by this {@link Subscriber} in order.
221+
* Asserts that a particular sequence of items was received by this {@link Subscriber} in order.
222222
*
223223
* @param items
224224
* the sequence of items expected to have been observed
@@ -230,7 +230,7 @@ public void assertReceivedOnNext(List<T> items) {
230230
}
231231

232232
/**
233-
* Assert that a single terminal event occurred, either {@link #onCompleted} or {@link #onError}.
233+
* Asserts that a single terminal event occurred, either {@link #onCompleted} or {@link #onError}.
234234
*
235235
* @throws AssertionError
236236
* if not exactly one terminal event notification was received
@@ -240,7 +240,7 @@ public void assertTerminalEvent() {
240240
}
241241

242242
/**
243-
* Assert that this {@code Subscriber} is unsubscribed.
243+
* Asserts that this {@code Subscriber} is unsubscribed.
244244
*
245245
* @throws AssertionError
246246
* if this {@code Subscriber} is not unsubscribed
@@ -252,7 +252,7 @@ public void assertUnsubscribed() {
252252
}
253253

254254
/**
255-
* Assert that this {@code Subscriber} has received no {@code onError} notifications.
255+
* Asserts that this {@code Subscriber} has received no {@code onError} notifications.
256256
*
257257
* @throws AssertionError
258258
* if this {@code Subscriber} has received one or more {@code onError} notifications
@@ -335,7 +335,7 @@ public Thread getLastSeenThread() {
335335
}
336336

337337
/**
338-
* Assert if there is exactly a single completion event.
338+
* Asserts that there is exactly one completion event.
339339
*
340340
* @throws AssertionError if there were zero, or more than one, onCompleted events
341341
* @since (if this graduates from "Experimental" replace this parenthetical with the release number)
@@ -352,7 +352,7 @@ public void assertCompleted() {
352352
}
353353

354354
/**
355-
* Assert if there is no completion event.
355+
* Asserts that there is no completion event.
356356
*
357357
* @throws AssertionError if there were one or more than one onCompleted events
358358
* @since (if this graduates from "Experimental" replace this parenthetical with the release number)
@@ -369,7 +369,7 @@ public void assertNotCompleted() {
369369
}
370370

371371
/**
372-
* Assert if there is exactly one error event which is a subclass of the given class.
372+
* Asserts that there is exactly one error event which is a subclass of the given class.
373373
*
374374
* @param clazz the class to check the error against.
375375
* @throws AssertionError if there were zero, or more than one, onError events, or if the single onError
@@ -395,7 +395,7 @@ public void assertError(Class<? extends Throwable> clazz) {
395395
}
396396

397397
/**
398-
* Assert there is a single onError event with the exact exception.
398+
* Asserts that there is a single onError event with the exact exception.
399399
*
400400
* @param throwable the throwable to check
401401
* @throws AssertionError if there were zero, or more than one, onError events, or if the single onError
@@ -421,7 +421,7 @@ public void assertError(Throwable throwable) {
421421
}
422422

423423
/**
424-
* Assert for no onError and onCompleted events.
424+
* Asserts that there are no onError and onCompleted events.
425425
*
426426
* @throws AssertionError if there was either an onError or onCompleted event
427427
* @since (if this graduates from "Experimental" replace this parenthetical with the release number)
@@ -447,7 +447,7 @@ public void assertNoTerminalEvent() {
447447
}
448448

449449
/**
450-
* Assert if there are no onNext events received.
450+
* Asserts that there are no onNext events received.
451451
*
452452
* @throws AssertionError if there were any onNext events
453453
* @since (if this graduates from "Experimental" replace this parenthetical with the release number)
@@ -461,7 +461,7 @@ public void assertNoValues() {
461461
}
462462

463463
/**
464-
* Assert if the given number of onNext events are received.
464+
* Asserts that the given number of onNext events are received.
465465
*
466466
* @param count the expected number of onNext events
467467
* @throws AssertionError if there were more or fewer onNext events than specified by {@code count}
@@ -476,7 +476,7 @@ public void assertValueCount(int count) {
476476
}
477477

478478
/**
479-
* Assert if the received onNext events, in order, are the specified items.
479+
* Asserts that the received onNext events, in order, are the specified items.
480480
*
481481
* @param values the items to check
482482
* @throws AssertionError if the items emitted do not exactly match those specified by {@code values}
@@ -488,7 +488,7 @@ public void assertValues(T... values) {
488488
}
489489

490490
/**
491-
* Assert if there is only a single received onNext event and that it marks the emission of a specific item.
491+
* Asserts that there is only a single received onNext event and that it marks the emission of a specific item.
492492
*
493493
* @param value the item to check
494494
* @throws AssertionError if the Observable does not emit only the single item specified by {@code value}

0 commit comments

Comments
 (0)