Skip to content

Commit 17ba599

Browse files
committed
BehaviorSubjectTest: Simplify testUnsubscriptionCase() test
1 parent b2c0325 commit 17ba599

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/test/java/rx/subjects/BehaviorSubjectTest.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -274,22 +274,8 @@ public Observable<String> call(String t1) {
274274
return Observable.just(t1 + ", " + t1);
275275
}
276276
})
277-
.subscribe(new Observer<String>() {
278-
@Override
279-
public void onNext(String t) {
280-
o.onNext(t);
281-
}
282-
283-
@Override
284-
public void onError(Throwable e) {
285-
o.onError(e);
286-
}
277+
.subscribe(o);
287278

288-
@Override
289-
public void onCompleted() {
290-
o.onCompleted();
291-
}
292-
});
293279
inOrder.verify(o).onNext(v + ", " + v);
294280
inOrder.verify(o).onCompleted();
295281
verify(o, never()).onError(any(Throwable.class));

0 commit comments

Comments
 (0)