You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add in ObjectEnumerableAssert javadoc references for assertions taking a vararg (ex: containsAnyOf) to their counterpart taking an iterable (ex: containsAnyElementsOf).
* If you need to check that actual is a subset of the given values, use {@link #isSubsetOf(Object...)}.
75
+
* <p>
76
+
* If you want to specify the elements to check with an {@link Iterable}, use {@link #containsOnlyElementsOf(Iterable) containsOnlyElementsOf(Iterable)} instead.
73
77
*
74
78
* @param values the given values.
75
79
* @return {@code this} assertion object.
@@ -143,6 +147,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
143
147
*
144
148
* // assertion will fail as actual and expected order differ
* If you want to specify the elements to check with an {@link Iterable}, use {@link #containsExactlyElementsOf(Iterable) containsExactlyElementsOf(Iterable)} instead.
146
152
*
147
153
* @param values the given values.
148
154
* @return {@code this} assertion object.
@@ -167,6 +173,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
167
173
*
168
174
* // assertion will fail as vilya is contained twice in elvesRings.
* If you want to specify the elements to check with an {@link Iterable}, use {@link #containsExactlyInAnyOrderElementsOf(Iterable) containsExactlyInAnyOrderElementsOf(Iterable)} instead.
170
178
*
171
179
* @param values the given values.
172
180
* @return {@code this} assertion object.
@@ -192,6 +200,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
192
200
*
193
201
* // assertion will fail as vilya is contained twice in elvesRings.
* If you want to directly specify the elements to check, use {@link #containsExactlyInAnyOrder(Object...) containsExactlyInAnyOrder(Object...)} instead.
195
205
*
196
206
* @param values the given values.
197
207
* @return {@code this} assertion object.
@@ -219,6 +229,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
219
229
* // assertions will fail, the elements order is correct but there is a value between them (nenya)
* If you want to specify the sequence not to find with an {@link Iterable}, use {@link #doesNotContainSequence(Iterable) doesNotContainSequence(Iterable)} instead.
272
288
*
273
289
* @param sequence the sequence of objects to look for.
274
290
* @return this assertion object.
@@ -295,6 +311,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
* If you want to directly specify the elements of the sequence not to find, use {@link #doesNotContainSequence(Object...) doesNotContainSequence(Object...)} instead.
298
316
*
299
317
* @param sequence the sequence of objects to look for.
300
318
* @return this assertion object.
@@ -317,7 +335,9 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
* If you want to specify the elements of the subsequence to check with an {@link Iterable}, use {@link #containsSubsequence(Iterable) containsSubsequence(Iterable)} instead.
340
+
321
341
* @param sequence the sequence of objects to look for.
322
342
* @return this assertion object.
323
343
* @throws AssertionError if the actual group is {@code null}.
@@ -338,6 +358,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
* If you want to specify the subsequence not to find with an {@link Iterable}, use {@link #doesNotContainSubsequence(Iterable) doesNotContainSubsequence(Iterable)} instead.
365
389
*
366
390
* @param sequence the sequence of objects to look for.
367
391
* @return this assertion object.
@@ -385,6 +409,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
* If you want to directly specify the elements of the subsequence not to find, use {@link #doesNotContainSubsequence(Object...) doesNotContainSubsequence(Object...)} instead.
388
414
*
389
415
* @param sequence the sequence of objects to look for.
390
416
* @return this assertion object.
@@ -409,6 +435,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
* If you want to specify the elements not to find with an {@link Iterable}, use {@link #doesNotContainAnyElementsOf(Iterable) doesNotContainAnyElementsOf(Iterable)} instead.
412
440
*
413
441
* @param values the given values.
414
442
* @return {@code this} assertion object.
@@ -870,6 +898,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
* If you want to specify the elements to check with an {@link Iterable}, use {@link #containsAnyElementsOf(Iterable) containsAnyElementsOf(Iterable)} instead.
1114
1156
*
1115
1157
* @param values the values whose at least one which is expected to be in the {@code Iterable} under test.
1116
1158
* @return {@code this} assertion object.
@@ -1138,6 +1180,8 @@ public interface ObjectEnumerableAssert<SELF extends ObjectEnumerableAssert<SELF
0 commit comments