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.20 by jsr166, Tue May 31 16:16:23 2011 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 <     * Create 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 <     * Create 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 <     * Create 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 454 | Line 454 | public class ConcurrentSkipListSubSetTes
454              assertTrue(q.contains(it.next()));
455              ++i;
456          }
457 <        assertEquals(i, 0);
457 >        assertEquals(0, i);
458      }
459  
460      /**
# 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 954 | Line 954 | public class ConcurrentSkipListSubSetTes
954              assertTrue(q.contains(it.next()));
955              ++i;
956          }
957 <        assertEquals(i, 0);
957 >        assertEquals(0, i);
958      }
959  
960      /**
# 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