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.8 by jsr166, Sat Nov 21 10:25:05 2009 UTC vs.
Revision 1.9 by jsr166, Sat Nov 21 17:38:06 2009 UTC

# Line 328 | Line 328 | public class TreeSubMapTest extends JSR1
328          try {
329              e.setValue("A");
330              shouldThrow();
331 <        } catch (Exception ok) {
332 <        }
331 >        } catch (UnsupportedOperationException success) {}
332          assertTrue(map.isEmpty());
333          Map.Entry f = map.firstEntry();
334          assertNull(f);
# Line 359 | Line 358 | public class TreeSubMapTest extends JSR1
358          try {
359              e.setValue("E");
360              shouldThrow();
361 <        } catch (Exception ok) {
363 <        }
361 >        } catch (UnsupportedOperationException success) {}
362          e = map.pollLastEntry();
363          assertNull(e);
364      }
# Line 396 | Line 394 | public class TreeSubMapTest extends JSR1
394              NavigableMap c = map5();
395              c.get(null);
396              shouldThrow();
397 <        } catch (NullPointerException e) {}
397 >        } catch (NullPointerException success) {}
398      }
399  
400      /**
# Line 407 | Line 405 | public class TreeSubMapTest extends JSR1
405              NavigableMap c = map5();
406              c.containsKey(null);
407              shouldThrow();
408 <        } catch (NullPointerException e) {}
408 >        } catch (NullPointerException success) {}
409      }
410  
411      /**
# Line 418 | Line 416 | public class TreeSubMapTest extends JSR1
416              NavigableMap c = map5();
417              c.put(null, "whatever");
418              shouldThrow();
419 <        } catch (NullPointerException e) {}
419 >        } catch (NullPointerException success) {}
420      }
421  
422      /**
# Line 429 | Line 427 | public class TreeSubMapTest extends JSR1
427              NavigableMap c = map5();
428              c.remove(null);
429              shouldThrow();
430 <        } catch (NullPointerException e) {}
430 >        } catch (NullPointerException success) {}
431      }
432  
433      /**
# Line 898 | Line 896 | public class TreeSubMapTest extends JSR1
896          try {
897              e.setValue("A");
898              shouldThrow();
899 <        } catch (Exception ok) {
902 <        }
899 >        } catch (UnsupportedOperationException success) {}
900          e = map.pollFirstEntry();
901          assertNull(e);
902      }
# Line 926 | Line 923 | public class TreeSubMapTest extends JSR1
923          try {
924              e.setValue("E");
925              shouldThrow();
926 <        } catch (Exception ok) {
930 <        }
926 >        } catch (UnsupportedOperationException success) {}
927          e = map.pollLastEntry();
928          assertNull(e);
929      }
# Line 963 | Line 959 | public class TreeSubMapTest extends JSR1
959              NavigableMap c = dmap5();
960              c.get(null);
961              shouldThrow();
962 <        } catch (NullPointerException e) {}
962 >        } catch (NullPointerException success) {}
963      }
964  
965      /**
# Line 974 | Line 970 | public class TreeSubMapTest extends JSR1
970              NavigableMap c = dmap5();
971              c.put(null, "whatever");
972              shouldThrow();
973 <        } catch (NullPointerException e) {}
973 >        } catch (NullPointerException success) {}
974      }
975  
976      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines