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

Comparing jsr166/src/test/tck/TreeSubMapTest.java (file contents):
Revision 1.21 by jsr166, Wed Dec 31 19:05:43 2014 UTC vs.
Revision 1.24 by jsr166, Fri Aug 4 03:30:21 2017 UTC

# Line 19 | Line 19 | import junit.framework.TestSuite;
19  
20   public class TreeSubMapTest extends JSR166TestCase {
21      public static void main(String[] args) {
22 <        junit.textui.TestRunner.run(suite());
22 >        main(suite(), args);
23      }
24      public static Test suite() {
25          return new TestSuite(TreeSubMapTest.class);
# Line 392 | Line 392 | public class TreeSubMapTest extends JSR1
392       * get(null) of nonempty map throws NPE
393       */
394      public void testGet_NullPointerException() {
395 +        NavigableMap c = map5();
396          try {
396            NavigableMap c = map5();
397              c.get(null);
398              shouldThrow();
399          } catch (NullPointerException success) {}
# Line 403 | Line 403 | public class TreeSubMapTest extends JSR1
403       * containsKey(null) of nonempty map throws NPE
404       */
405      public void testContainsKey_NullPointerException() {
406 +        NavigableMap c = map5();
407          try {
407            NavigableMap c = map5();
408              c.containsKey(null);
409              shouldThrow();
410          } catch (NullPointerException success) {}
# Line 414 | Line 414 | public class TreeSubMapTest extends JSR1
414       * put(null,x) throws NPE
415       */
416      public void testPut1_NullPointerException() {
417 +        NavigableMap c = map5();
418          try {
418            NavigableMap c = map5();
419              c.put(null, "whatever");
420              shouldThrow();
421          } catch (NullPointerException success) {}
# Line 425 | Line 425 | public class TreeSubMapTest extends JSR1
425       * remove(null) throws NPE
426       */
427      public void testRemove1_NullPointerException() {
428 +        NavigableMap c = map5();
429          try {
429            NavigableMap c = map5();
430              c.remove(null);
431              shouldThrow();
432          } catch (NullPointerException success) {}
433      }
434  
435      /**
436 <     * A deserialized map equals original
436 >     * A deserialized/reserialized map equals original
437       */
438      public void testSerialization() throws Exception {
439          NavigableMap x = map5();
# Line 941 | Line 941 | public class TreeSubMapTest extends JSR1
941       * get(null) of nonempty map throws NPE
942       */
943      public void testDescendingGet_NullPointerException() {
944 +        NavigableMap c = dmap5();
945          try {
945            NavigableMap c = dmap5();
946              c.get(null);
947              shouldThrow();
948          } catch (NullPointerException success) {}
# Line 952 | Line 952 | public class TreeSubMapTest extends JSR1
952       * put(null,x) throws NPE
953       */
954      public void testDescendingPut1_NullPointerException() {
955 +        NavigableMap c = dmap5();
956          try {
956            NavigableMap c = dmap5();
957              c.put(null, "whatever");
958              shouldThrow();
959          } catch (NullPointerException success) {}
960      }
961  
962      /**
963 <     * A deserialized map equals original
963 >     * A deserialized/reserialized map equals original
964       */
965      public void testDescendingSerialization() throws Exception {
966          NavigableMap x = dmap5();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines