We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2c0325 commit 17ba599Copy full SHA for 17ba599
src/test/java/rx/subjects/BehaviorSubjectTest.java
@@ -274,22 +274,8 @@ public Observable<String> call(String t1) {
274
return Observable.just(t1 + ", " + t1);
275
}
276
})
277
- .subscribe(new Observer<String>() {
278
- @Override
279
- public void onNext(String t) {
280
- o.onNext(t);
281
- }
282
-
283
284
- public void onError(Throwable e) {
285
- o.onError(e);
286
+ .subscribe(o);
287
288
289
- public void onCompleted() {
290
- o.onCompleted();
291
292
- });
293
inOrder.verify(o).onNext(v + ", " + v);
294
inOrder.verify(o).onCompleted();
295
verify(o, never()).onError(any(Throwable.class));
0 commit comments