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

Comparing jsr166/src/test/tck/ConcurrentSkipListMapTest.java (file contents):
Revision 1.39 by jsr166, Fri Aug 4 02:54:33 2017 UTC vs.
Revision 1.42 by jsr166, Sun Sep 29 20:40:48 2019 UTC

# Line 18 | Line 18 | import java.util.Set;
18   import java.util.concurrent.ConcurrentSkipListMap;
19  
20   import junit.framework.Test;
21 import junit.framework.TestSuite;
21  
22   public class ConcurrentSkipListMapTest extends JSR166TestCase {
23      public static void main(String[] args) {
24          main(suite(), args);
25      }
26      public static Test suite() {
27 <        return new TestSuite(ConcurrentSkipListMapTest.class);
27 >        class Implementation implements MapImplementation {
28 >            public Class<?> klazz() { return ConcurrentSkipListMap.class; }
29 >            public Map emptyMap() { return new ConcurrentSkipListMap(); }
30 >            public boolean isConcurrent() { return true; }
31 >            public boolean remappingFunctionCalledAtMostOnce() { return false; };
32 >            public boolean permitsNullKeys() { return false; }
33 >            public boolean permitsNullValues() { return false; }
34 >            public boolean supportsSetValue() { return false; }
35 >        }
36 >        return newTestSuite(
37 >            ConcurrentSkipListMapTest.class,
38 >            MapTest.testSuite(new Implementation()));
39      }
40  
41      /**
# Line 803 | Line 813 | public class ConcurrentSkipListMapTest e
813      /**
814       * A cloned map equals original
815       */
816 <    public void testClone() throws Exception {
816 >    public void testClone() {
817          ConcurrentSkipListMap x = map5();
818          ConcurrentSkipListMap y = x.clone();
819  
# Line 818 | Line 828 | public class ConcurrentSkipListMapTest e
828      }
829  
830      /**
831 <     * A deserialized map equals original
831 >     * A deserialized/reserialized map equals original
832       */
833      public void testSerialization() throws Exception {
834          NavigableMap x = map5();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines