ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/Collection8Test.java
(Generate patch)

Comparing jsr166/src/test/tck/Collection8Test.java (file contents):
Revision 1.59 by jsr166, Tue Apr 30 00:50:31 2019 UTC vs.
Revision 1.60 by jsr166, Mon Dec 16 21:22:33 2019 UTC

# Line 413 | Line 413 | public class Collection8Test extends JSR
413              if (rnd.nextBoolean()) assertTrue(it.hasNext());
414              it.next();
415          }
416        Consumer alwaysThrows = e -> { throw new AssertionError(); };
416          // TODO: many more removal methods
417          if (rnd.nextBoolean()) {
418              for (Iterator z = c.iterator(); z.hasNext(); ) {
# Line 634 | Line 633 | public class Collection8Test extends JSR
633       */
634      public void testStreamForEach() throws Throwable {
635          final Collection c = impl.emptyCollection();
637        final AtomicLong count = new AtomicLong(0L);
636          final Object x = impl.makeElement(1);
637          final Object y = impl.makeElement(2);
638          final ArrayList found = new ArrayList();
# Line 692 | Line 690 | public class Collection8Test extends JSR
690       */
691      public void testForEach() throws Throwable {
692          final Collection c = impl.emptyCollection();
695        final AtomicLong count = new AtomicLong(0L);
693          final Object x = impl.makeElement(1);
694          final Object y = impl.makeElement(2);
695          final ArrayList found = new ArrayList();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines