[cvs] / jsr166 / src / test / tck / ConcurrentSkipListSetTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ConcurrentSkipListSetTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.47, Sat Mar 18 20:42:20 2017 UTC revision 1.48, Fri Aug 4 04:59:23 2017 UTC
# Line 526  Line 526 
526      }      }
527    
528      /**      /**
529       * A deserialized serialized set has same elements       * A cloned set equals original
530         */
531        public void testClone() {
532            ConcurrentSkipListSet x = populatedSet(SIZE);
533            ConcurrentSkipListSet y = x.clone();
534    
535            assertNotSame(x, y);
536            assertEquals(x.size(), y.size());
537            assertEquals(x, y);
538            assertEquals(y, x);
539            while (!x.isEmpty()) {
540                assertFalse(y.isEmpty());
541                assertEquals(x.pollFirst(), y.pollFirst());
542            }
543            assertTrue(y.isEmpty());
544        }
545    
546        /**
547         * A deserialized/reserialized set equals original
548       */       */
549      public void testSerialization() throws Exception {      public void testSerialization() throws Exception {
550          NavigableSet x = populatedSet(SIZE);          NavigableSet x = populatedSet(SIZE);

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8