@@ -219,60 +219,6 @@ public final void containsAnyIn(Object[] expected) {
219
219
containsAnyIn (asList (expected ));
220
220
}
221
221
222
- /**
223
- * Checks that the actual iterable contains at least all of the expected elements or fails. If an
224
- * element appears more than once in the expected elements to this call then it must appear at
225
- * least that number of times in the actual elements.
226
- *
227
- * <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
228
- * on the object returned by this method. The expected elements must appear in the given order
229
- * within the actual elements, but they are not required to be consecutive.
230
- *
231
- * @deprecated Use {@link #containsAtLeast}, which is equivalent.
232
- */
233
- @ CanIgnoreReturnValue
234
- @ Deprecated
235
- public final Ordered containsAllOf (
236
- @ NullableDecl Object firstExpected ,
237
- @ NullableDecl Object secondExpected ,
238
- @ NullableDecl Object ... restOfExpected ) {
239
- return containsAtLeast (firstExpected , secondExpected , restOfExpected );
240
- }
241
-
242
- /**
243
- * Checks that the actual iterable contains at least all of the expected elements or fails. If an
244
- * element appears more than once in the expected elements then it must appear at least that
245
- * number of times in the actual elements.
246
- *
247
- * <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
248
- * on the object returned by this method. The expected elements must appear in the given order
249
- * within the actual elements, but they are not required to be consecutive.
250
- *
251
- * @deprecated Use {@link #containsAtLeastElementsIn(Iterable)}, which is equivalent.
252
- */
253
- @ CanIgnoreReturnValue
254
- @ Deprecated
255
- public final Ordered containsAllIn (Iterable <?> expectedIterable ) {
256
- return containsAtLeastElementsIn (expectedIterable );
257
- }
258
-
259
- /**
260
- * Checks that the actual iterable contains at least all of the expected elements or fails. If an
261
- * element appears more than once in the expected elements then it must appear at least that
262
- * number of times in the actual elements.
263
- *
264
- * <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
265
- * on the object returned by this method. The expected elements must appear in the given order
266
- * within the actual elements, but they are not required to be consecutive.
267
- *
268
- * @deprecated Use {@link #containsAtLeastElementsIn(Object[])}, which is equivalent.
269
- */
270
- @ CanIgnoreReturnValue
271
- @ Deprecated
272
- public final Ordered containsAllIn (Object [] expected ) {
273
- return containsAtLeastElementsIn (expected );
274
- }
275
-
276
222
/**
277
223
* Checks that the actual iterable contains at least all of the expected elements or fails. If an
278
224
* element appears more than once in the expected elements to this call then it must appear at
@@ -847,61 +793,6 @@ public boolean check(Object prev, Object next) {
847
793
});
848
794
}
849
795
850
- /**
851
- * Fails if the iterable is not strictly ordered, according to the natural ordering of its
852
- * elements. Strictly ordered means that each element in the iterable is <i>strictly</i> greater
853
- * than the element that preceded it.
854
- *
855
- * @throws ClassCastException if any pair of elements is not mutually Comparable
856
- * @throws NullPointerException if any element is null
857
- * @deprecated Use {@link #isInStrictOrder()}.
858
- */
859
- @ Deprecated
860
- public final void isStrictlyOrdered () {
861
- isInStrictOrder ();
862
- }
863
-
864
- /**
865
- * Fails if the iterable is not strictly ordered, according to the given comparator. Strictly
866
- * ordered means that each element in the iterable is <i>strictly</i> greater than the element
867
- * that preceded it.
868
- *
869
- * @throws ClassCastException if any pair of elements is not mutually Comparable
870
- * @deprecated Use {@link #isInStrictOrder(Comparator)}.
871
- */
872
- @ Deprecated
873
- @ SuppressWarnings ({"unchecked" })
874
- public final void isStrictlyOrdered (final Comparator <?> comparator ) {
875
- isInStrictOrder (comparator );
876
- }
877
-
878
- /**
879
- * Fails if the iterable is not ordered, according to the natural ordering of its elements.
880
- * Ordered means that each element in the iterable is greater than or equal to the element that
881
- * preceded it.
882
- *
883
- * @throws ClassCastException if any pair of elements is not mutually Comparable
884
- * @throws NullPointerException if any element is null
885
- * @deprecated Use {@link #isInOrder()}
886
- */
887
- @ Deprecated
888
- public final void isOrdered () {
889
- isInOrder ();
890
- }
891
-
892
- /**
893
- * Fails if the iterable is not ordered, according to the given comparator. Ordered means that
894
- * each element in the iterable is greater than or equal to the element that preceded it.
895
- *
896
- * @throws ClassCastException if any pair of elements is not mutually Comparable
897
- * @deprecated Use {@link #isInOrder(Comparator)}.
898
- */
899
- @ Deprecated
900
- @ SuppressWarnings ({"unchecked" })
901
- public final void isOrdered (final Comparator <?> comparator ) {
902
- isInOrder (comparator );
903
- }
904
-
905
796
private interface PairwiseChecker {
906
797
boolean check (Object prev , Object next );
907
798
}
@@ -1559,59 +1450,6 @@ private boolean failIfOneToOneMappingHasMissingOrExtra(
1559
1450
return false ;
1560
1451
}
1561
1452
1562
- /**
1563
- * Checks that the subject contains elements that corresponds to all of the expected elements,
1564
- * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
1565
- * elements where each pair of elements correspond.
1566
- *
1567
- * <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
1568
- * on the object returned by this method. The elements must appear in the given order within the
1569
- * subject, but they are not required to be consecutive.
1570
- *
1571
- * @deprecated Use {@link #containsAtLeast}, which is equivalent.
1572
- */
1573
- @ SafeVarargs
1574
- @ CanIgnoreReturnValue
1575
- @ Deprecated
1576
- public final Ordered containsAllOf (
1577
- @ NullableDecl E first , @ NullableDecl E second , @ NullableDecl E ... rest ) {
1578
- return containsAtLeast (first , second , rest );
1579
- }
1580
-
1581
- /**
1582
- * Checks that the subject contains elements that corresponds to all of the expected elements,
1583
- * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
1584
- * elements where each pair of elements correspond.
1585
- *
1586
- * <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
1587
- * on the object returned by this method. The elements must appear in the given order within the
1588
- * subject, but they are not required to be consecutive.
1589
- *
1590
- * @deprecated Use {@link #containsAtLeastElementsIn(Iterable)}, which is equivalent.
1591
- */
1592
- @ CanIgnoreReturnValue
1593
- @ Deprecated
1594
- public Ordered containsAllIn (final Iterable <? extends E > expected ) {
1595
- return containsAtLeastElementsIn (expected );
1596
- }
1597
-
1598
- /**
1599
- * Checks that the subject contains elements that corresponds to all of the expected elements,
1600
- * i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
1601
- * elements where each pair of elements correspond.
1602
- *
1603
- * <p>To also test that the contents appear in the given order, make a call to {@code inOrder()}
1604
- * on the object returned by this method. The elements must appear in the given order within the
1605
- * subject, but they are not required to be consecutive.
1606
- *
1607
- * @deprecated Use {@link #containsAtLeastElementsIn(Object[])}, which is equivalent.
1608
- */
1609
- @ CanIgnoreReturnValue
1610
- @ Deprecated
1611
- public Ordered containsAllIn (E [] expected ) {
1612
- return containsAtLeastElementsIn (expected );
1613
- }
1614
-
1615
1453
/**
1616
1454
* Checks that the subject contains elements that corresponds to all of the expected elements,
1617
1455
* i.e. that there is a 1:1 mapping between any subset of the actual elements and the expected
0 commit comments