Skip to content

Commit

Permalink
Replace isEqualTo asserts with isSameAs, which is technically more co…
Browse files Browse the repository at this point in the history
…rrect
  • Loading branch information
Matt Wysocki committed Sep 22, 2017
1 parent c78dc63 commit 45e6c31
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public class AutoDisposeCompletableObserverTest {
assertThat(atomicAutoDisposingObserver.get()).isInstanceOf(AutoDisposingCompletableObserver.class);
assertThat(((AutoDisposingCompletableObserver)atomicAutoDisposingObserver.get()).delegateObserver()).isNotNull();
assertThat(((AutoDisposingCompletableObserver)atomicAutoDisposingObserver.get()).delegateObserver())
.isEqualTo(atomicObserver.get());
.isSameAs(atomicObserver.get());
} finally {
RxJavaPlugins.reset();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public class AutoDisposeMaybeObserverTest {
assertThat(atomicAutoDisposingObserver.get()).isInstanceOf(AutoDisposingMaybeObserver.class);
assertThat(((AutoDisposingMaybeObserver)atomicAutoDisposingObserver.get()).delegateObserver()).isNotNull();
assertThat(((AutoDisposingMaybeObserver)atomicAutoDisposingObserver.get()).delegateObserver())
.isEqualTo(atomicObserver.get());
.isSameAs(atomicObserver.get());
} finally {
RxJavaPlugins.reset();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public class AutoDisposeObserverTest {
assertThat(atomicAutoDisposingObserver.get()).isInstanceOf(AutoDisposingObserver.class);
assertThat(((AutoDisposingObserver)atomicAutoDisposingObserver.get()).delegateObserver()).isNotNull();
assertThat(((AutoDisposingObserver)atomicAutoDisposingObserver.get()).delegateObserver())
.isEqualTo(atomicObserver.get());
.isSameAs(atomicObserver.get());
} finally {
RxJavaPlugins.reset();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public class AutoDisposeSingleObserverTest {
assertThat(atomicAutoDisposingObserver.get()).isInstanceOf(AutoDisposingSingleObserver.class);
assertThat(((AutoDisposingSingleObserver)atomicAutoDisposingObserver.get()).delegateObserver()).isNotNull();
assertThat(((AutoDisposingSingleObserver)atomicAutoDisposingObserver.get()).delegateObserver())
.isEqualTo(atomicObserver.get());
.isSameAs(atomicObserver.get());
} finally {
RxJavaPlugins.reset();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public class AutoDisposeSubscriberTest {
assertThat(atomicAutoDisposingSubscriber.get()).isInstanceOf(AutoDisposingSubscriber.class);
assertThat(((AutoDisposingSubscriber)atomicAutoDisposingSubscriber.get()).delegateSubscriber()).isNotNull();
assertThat(((AutoDisposingSubscriber)atomicAutoDisposingSubscriber.get()).delegateSubscriber())
.isEqualTo(atomicSubscriber.get());
.isSameAs(atomicSubscriber.get());
} finally {
RxJavaPlugins.reset();
}
Expand Down

0 comments on commit 45e6c31

Please sign in to comment.