test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java
Print this page
rev 7302 : 8009736: Comparator API cleanup
Reviewed-by:
Contributed-by: henry.jen@oracle.com
*** 207,217 ****
}
public void testLimitSort() {
List<Integer> l = countTo(100);
Collections.reverse(l);
! exerciseOps(l, s -> s.limit(10).sorted(Comparators.naturalOrder()));
}
@Test(groups = { "serialization-hostile" })
public void testLimitShortCircuit() {
for (int l : Arrays.asList(0, 10)) {
--- 207,217 ----
}
public void testLimitSort() {
List<Integer> l = countTo(100);
Collections.reverse(l);
! exerciseOps(l, s -> s.limit(10).sorted(Comparator.naturalOrder()));
}
@Test(groups = { "serialization-hostile" })
public void testLimitShortCircuit() {
for (int l : Arrays.asList(0, 10)) {