test/java/util/stream/test/org/openjdk/tests/java/util/stream/SliceOpTest.java

Print this page
rev 7485 : 8009736: Comparator API cleanup
Reviewed-by:
Contributed-by: henry.jen@oracle.com

*** 268,278 **** } 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)) { --- 268,278 ---- } 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)) {