Skip to content

Commit 654572a

Browse files
authored
Apply cl/244916398 externally (#373)
1 parent 7a6b23a commit 654572a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

firebase-firestore/src/testUtil/java/com/google/firebase/firestore/testutil/ComparatorTester.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
// Copyright 2009 Google Inc. All Rights Reserved.
1818

19-
import static com.google.common.truth.Truth.assertThat;
2019
import static com.google.common.truth.Truth.assertWithMessage;
2120
import static com.google.common.truth.Truth.assert_;
2221

@@ -155,8 +154,8 @@ private void doTestEquivalanceGroupOrdering() {
155154
testClassCast(reference);
156155
for (int otherIndex = 0; otherIndex < equalityGroups.size(); otherIndex++) {
157156
for (Object other : equalityGroups.get(otherIndex)) {
158-
assertThat(Integer.signum(compare(reference, other)))
159-
.named("compare(%s, %s)", reference, other)
157+
assertWithMessage("compare(%s, %s)", reference, other)
158+
.that(Integer.signum(compare(reference, other)))
160159
.isEqualTo(Integer.signum(Ints.compare(referenceIndex, otherIndex)));
161160
}
162161
}
@@ -172,8 +171,8 @@ private void doTestEqualsCompatibility() {
172171
assertWithMessage(
173172
"Testing equals() for compatibility with compare()/compareTo(), "
174173
+ "add a call to doNotRequireEqualsCompatibility() if this is not required")
174+
.withMessage("%s.equals(%s)", reference, other)
175175
.that(reference.equals(other))
176-
.named("%s.equals(%s)", reference, other)
177176
.isEqualTo(compare(reference, other) == 0);
178177
}
179178
}

0 commit comments

Comments
 (0)