diff --git a/core/src/test/java/google/registry/model/ImmutableObjectSubject.java b/core/src/test/java/google/registry/model/ImmutableObjectSubject.java index 80f35086a..046cf0e21 100644 --- a/core/src/test/java/google/registry/model/ImmutableObjectSubject.java +++ b/core/src/test/java/google/registry/model/ImmutableObjectSubject.java @@ -16,6 +16,7 @@ package google.registry.model; import static com.google.common.truth.Truth.assertAbout; import static com.google.common.truth.Truth.assertThat; +import static google.registry.testing.truth.TruthUtils.assertNullnessParity; import com.google.common.collect.ImmutableSet; import com.google.common.truth.Correspondence; @@ -62,11 +63,7 @@ public final class ImmutableObjectSubject extends Subject { *
This is used to verify that entities stored in both cloud SQL and Datastore are identical.
*/
public void isEqualAcrossDatabases(@Nullable ImmutableObject expected) {
- if (actual == null) {
- assertThat(expected).isNull();
- } else {
- assertThat(expected).isNotNull();
- }
+ assertNullnessParity(actual, expected);
if (actual != null) {
Map