@@ -115,7 +115,8 @@ protected IterableSubject(FailureMetadata metadata, @Nullable Iterable<?> iterab
115
115
protected String actualCustomStringRepresentation () {
116
116
if (actual != null ) {
117
117
// Check the value of iterable.toString() against the default Object.toString() implementation
118
- // so we can avoid things like "com.google.common.graph.Traverser$GraphTraverser$1@5e316c74"
118
+ // so that we can avoid things like
119
+ // "com.google.common.graph.Traverser$GraphTraverser$1@5e316c74"
119
120
String objectToString =
120
121
actual .getClass ().getName () + '@' + Integer .toHexString (System .identityHashCode (actual ));
121
122
if (actual .toString ().equals (objectToString )) {
@@ -256,7 +257,7 @@ public final void containsAnyIn(@Nullable Object[] expected) {
256
257
}
257
258
258
259
/**
259
- * Checks that the actual iterable contains at least all of the expected elements or fails. If an
260
+ * Checks that the actual iterable contains at least all the expected elements or fails. If an
260
261
* element appears more than once in the expected elements to this call then it must appear at
261
262
* least that number of times in the actual elements.
262
263
*
@@ -273,7 +274,7 @@ public final Ordered containsAtLeast(
273
274
}
274
275
275
276
/**
276
- * Checks that the actual iterable contains at least all of the expected elements or fails. If an
277
+ * Checks that the actual iterable contains at least all the expected elements or fails. If an
277
278
* element appears more than once in the expected elements then it must appear at least that
278
279
* number of times in the actual elements.
279
280
*
@@ -333,7 +334,7 @@ public void inOrder() {
333
334
}
334
335
335
336
/**
336
- * Checks that the actual iterable contains at least all of the expected elements or fails. If an
337
+ * Checks that the actual iterable contains at least all the expected elements or fails. If an
337
338
* element appears more than once in the expected elements then it must appear at least that
338
339
* number of times in the actual elements.
339
340
*
@@ -711,7 +712,7 @@ enum ElementFactGrouping {
711
712
}
712
713
713
714
/**
714
- * Checks that a actual iterable contains none of the excluded objects or fails. (Duplicates are
715
+ * Checks that an actual iterable contains none of the excluded objects or fails. (Duplicates are
715
716
* irrelevant to this test, which fails if any of the actual elements equal any of the excluded.)
716
717
*/
717
718
public final void containsNoneOf (
@@ -1043,7 +1044,7 @@ public final String toString() {
1043
1044
*
1044
1045
* <p>On assertions where it makes sense to do so, the elements are paired as follows: they are
1045
1046
* keyed by {@code keyFunction}, and if an unexpected element and a missing element have the
1046
- * same non-null key then the they are paired up. (Elements with null keys are not paired.) The
1047
+ * same non-null key then they are paired up. (Elements with null keys are not paired.) The
1047
1048
* failure message will show paired elements together, and a diff will be shown if the {@link
1048
1049
* Correspondence#formatDiff} method returns non-null.
1049
1050
*
@@ -1085,8 +1086,8 @@ public UsingCorrespondence<A, E> displayingDiffsPairedBy(Function<? super E, ?>
1085
1086
* <p>On assertions where it makes sense to do so, the elements are paired as follows: the
1086
1087
* unexpected elements are keyed by {@code actualKeyFunction}, the missing elements are keyed by
1087
1088
* {@code expectedKeyFunction}, and if an unexpected element and a missing element have the same
1088
- * non-null key then the they are paired up. (Elements with null keys are not paired.) The
1089
- * failure message will show paired elements together, and a diff will be shown if the {@link
1089
+ * non-null key then they are paired up. (Elements with null keys are not paired.) The failure
1090
+ * message will show paired elements together, and a diff will be shown if the {@link
1090
1091
* Correspondence#formatDiff} method returns non-null.
1091
1092
*
1092
1093
* <p>The expected elements given in the assertion should be uniquely keyed by {@code
@@ -1561,8 +1562,8 @@ private boolean failIfOneToOneMappingHasMissingOrExtra(
1561
1562
}
1562
1563
1563
1564
/**
1564
- * Checks that the subject contains elements that corresponds to all of the expected elements,
1565
- * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
1565
+ * Checks that the subject contains elements that correspond to all the expected elements, i.e.
1566
+ * that there is a 1:1 mapping between any subset of the actual elements and the expected
1566
1567
* elements where each pair of elements correspond.
1567
1568
*
1568
1569
* <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
@@ -1576,8 +1577,8 @@ public final Ordered containsAtLeast(E first, E second, E @Nullable ... rest) {
1576
1577
}
1577
1578
1578
1579
/**
1579
- * Checks that the subject contains elements that corresponds to all of the expected elements,
1580
- * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
1580
+ * Checks that the subject contains elements that correspond to all the expected elements, i.e.
1581
+ * that there is a 1:1 mapping between any subset of the actual elements and the expected
1581
1582
* elements where each pair of elements correspond.
1582
1583
*
1583
1584
* <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
@@ -1642,8 +1643,8 @@ public void inOrder() {
1642
1643
}
1643
1644
1644
1645
/**
1645
- * Checks that the subject contains elements that corresponds to all of the expected elements,
1646
- * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
1646
+ * Checks that the subject contains elements that correspond to all the expected elements, i.e.
1647
+ * that there is a 1:1 mapping between any subset of the actual elements and the expected
1647
1648
* elements where each pair of elements correspond.
1648
1649
*
1649
1650
* <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
0 commit comments