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

Comparing jsr166/src/test/tck/ConcurrentSkipListSetTest.java (file contents):
Revision 1.28 by jsr166, Tue Feb 21 02:04:17 2012 UTC vs.
Revision 1.29 by jsr166, Tue Apr 2 22:18:25 2013 UTC

# Line 685 | Line 685 | public class ConcurrentSkipListSetTest e
685                     0, setSize - 1, true, bs);
686      }
687  
688 +    /**
689 +     * addAll is idempotent
690 +     */
691 +    public void testAddAll_idempotent() throws Exception {
692 +        Set x = populatedSet(SIZE);
693 +        Set y = new ConcurrentSkipListSet(x);
694 +        y.addAll(x);
695 +        assertEquals(x, y);
696 +        assertEquals(y, x);
697 +    }
698 +
699      static NavigableSet<Integer> newSet(Class cl) throws Exception {
700          NavigableSet<Integer> result = (NavigableSet<Integer>) cl.newInstance();
701          assertEquals(0, result.size());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines