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

Comparing jsr166/src/test/tck/TreeSubSetTest.java (file contents):
Revision 1.23 by jsr166, Tue Feb 21 02:04:17 2012 UTC vs.
Revision 1.24 by jsr166, Tue Apr 2 22:18:26 2013 UTC

# Line 10 | Line 10 | import java.util.Comparator;
10   import java.util.Iterator;
11   import java.util.NavigableSet;
12   import java.util.SortedSet;
13 + import java.util.Set;
14   import java.util.TreeSet;
15  
16   public class TreeSubSetTest extends JSR166TestCase {
# Line 1105 | Line 1106 | public class TreeSubSetTest extends JSR1
1106          assertEquals(4, set.size());
1107      }
1108  
1109 +    /**
1110 +     * addAll is idempotent
1111 +     */
1112 +    public void testAddAll_idempotent() throws Exception {
1113 +        Set x = populatedSet(SIZE);
1114 +        Set y = new TreeSet(x);
1115 +        y.addAll(x);
1116 +        assertEquals(x, y);
1117 +        assertEquals(y, x);
1118 +    }
1119 +
1120   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines