Skip to content

Commit

Permalink
BehaviorSubjectTest: Simplify testUnsubscriptionCase() test
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Sep 11, 2015
1 parent b2c0325 commit 17ba599
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/test/java/rx/subjects/BehaviorSubjectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,22 +274,8 @@ public Observable<String> call(String t1) {
return Observable.just(t1 + ", " + t1);
}
})
.subscribe(new Observer<String>() {
@Override
public void onNext(String t) {
o.onNext(t);
}

@Override
public void onError(Throwable e) {
o.onError(e);
}
.subscribe(o);

@Override
public void onCompleted() {
o.onCompleted();
}
});
inOrder.verify(o).onNext(v + ", " + v);
inOrder.verify(o).onCompleted();
verify(o, never()).onError(any(Throwable.class));
Expand Down

0 comments on commit 17ba599

Please sign in to comment.