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

Comparing jsr166/src/test/tck/ConcurrentSkipListSubSetTest.java (file contents):
Revision 1.22 by jsr166, Tue Feb 21 01:54:04 2012 UTC vs.
Revision 1.24 by jsr166, Thu May 30 03:28:55 2013 UTC

# Line 32 | Line 32 | public class ConcurrentSkipListSubSetTes
32      }
33  
34      /**
35 <     * Creates a set of given size containing consecutive
35 >     * Returns a new set of given size containing consecutive
36       * Integers 0 ... n.
37       */
38      private NavigableSet<Integer> populatedSet(int n) {
# Line 53 | Line 53 | public class ConcurrentSkipListSubSetTes
53      }
54  
55      /**
56 <     * Creates set of first 5 ints.
56 >     * Returns a new set of first 5 ints.
57       */
58      private NavigableSet set5() {
59          ConcurrentSkipListSet q = new ConcurrentSkipListSet();
# Line 71 | Line 71 | public class ConcurrentSkipListSubSetTes
71      }
72  
73      /**
74 <     * Creates set of first 5 negative ints.
74 >     * Returns a new set of first 5 negative ints.
75       */
76      private NavigableSet dset5() {
77          ConcurrentSkipListSet q = new ConcurrentSkipListSet();
# Line 494 | Line 494 | public class ConcurrentSkipListSubSetTes
494          NavigableSet x = populatedSet(SIZE);
495          NavigableSet y = serialClone(x);
496  
497 <        assertTrue(x != y);
497 >        assertNotSame(y, x);
498          assertEquals(x.size(), y.size());
499          assertEquals(x, y);
500          assertEquals(y, x);
# Line 994 | Line 994 | public class ConcurrentSkipListSubSetTes
994          NavigableSet x = dset5();
995          NavigableSet y = serialClone(x);
996  
997 <        assertTrue(x != y);
997 >        assertNotSame(y, x);
998          assertEquals(x.size(), y.size());
999          assertEquals(x, y);
1000          assertEquals(y, x);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines