From 45e6c31d452d62dd94dd4e845135ce534faaaf84 Mon Sep 17 00:00:00 2001 From: Matt Wysocki Date: Fri, 22 Sep 2017 13:16:09 -0700 Subject: [PATCH] Replace isEqualTo asserts with isSameAs, which is technically more correct --- .../uber/autodispose/AutoDisposeCompletableObserverTest.java | 2 +- .../java/com/uber/autodispose/AutoDisposeMaybeObserverTest.java | 2 +- .../test/java/com/uber/autodispose/AutoDisposeObserverTest.java | 2 +- .../com/uber/autodispose/AutoDisposeSingleObserverTest.java | 2 +- .../java/com/uber/autodispose/AutoDisposeSubscriberTest.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeCompletableObserverTest.java b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeCompletableObserverTest.java index 3ace06dfb..9be043b17 100755 --- a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeCompletableObserverTest.java +++ b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeCompletableObserverTest.java @@ -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(); } diff --git a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeMaybeObserverTest.java b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeMaybeObserverTest.java index f9b3be1b8..9751941fd 100755 --- a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeMaybeObserverTest.java +++ b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeMaybeObserverTest.java @@ -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(); } diff --git a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeObserverTest.java b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeObserverTest.java index 37c64e919..b19b7dd79 100755 --- a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeObserverTest.java +++ b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeObserverTest.java @@ -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(); } diff --git a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeSingleObserverTest.java b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeSingleObserverTest.java index 6b446d742..6236000ad 100755 --- a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeSingleObserverTest.java +++ b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeSingleObserverTest.java @@ -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(); } diff --git a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeSubscriberTest.java b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeSubscriberTest.java index 183ec003b..f804aac70 100755 --- a/autodispose/src/test/java/com/uber/autodispose/AutoDisposeSubscriberTest.java +++ b/autodispose/src/test/java/com/uber/autodispose/AutoDisposeSubscriberTest.java @@ -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(); }