703 |
|
ConcurrentSkipListMap c = map5(); |
704 |
|
c.get(null); |
705 |
|
shouldThrow(); |
706 |
< |
} catch (NullPointerException e){} |
706 |
> |
} catch (NullPointerException e) {} |
707 |
|
} |
708 |
|
|
709 |
|
/** |
714 |
|
ConcurrentSkipListMap c = map5(); |
715 |
|
c.containsKey(null); |
716 |
|
shouldThrow(); |
717 |
< |
} catch (NullPointerException e){} |
717 |
> |
} catch (NullPointerException e) {} |
718 |
|
} |
719 |
|
|
720 |
|
/** |
725 |
|
ConcurrentSkipListMap c = new ConcurrentSkipListMap(); |
726 |
|
c.containsValue(null); |
727 |
|
shouldThrow(); |
728 |
< |
} catch (NullPointerException e){} |
728 |
> |
} catch (NullPointerException e) {} |
729 |
|
} |
730 |
|
|
731 |
|
|
737 |
|
ConcurrentSkipListMap c = map5(); |
738 |
|
c.put(null, "whatever"); |
739 |
|
shouldThrow(); |
740 |
< |
} catch (NullPointerException e){} |
740 |
> |
} catch (NullPointerException e) {} |
741 |
|
} |
742 |
|
|
743 |
|
/** |
748 |
|
ConcurrentSkipListMap c = map5(); |
749 |
|
c.putIfAbsent(null, "whatever"); |
750 |
|
shouldThrow(); |
751 |
< |
} catch (NullPointerException e){} |
751 |
> |
} catch (NullPointerException e) {} |
752 |
|
} |
753 |
|
|
754 |
|
/** |
759 |
|
ConcurrentSkipListMap c = map5(); |
760 |
|
c.replace(null, "whatever"); |
761 |
|
shouldThrow(); |
762 |
< |
} catch (NullPointerException e){} |
762 |
> |
} catch (NullPointerException e) {} |
763 |
|
} |
764 |
|
|
765 |
|
/** |
770 |
|
ConcurrentSkipListMap c = map5(); |
771 |
|
c.replace(null, one, "whatever"); |
772 |
|
shouldThrow(); |
773 |
< |
} catch (NullPointerException e){} |
773 |
> |
} catch (NullPointerException e) {} |
774 |
|
} |
775 |
|
|
776 |
|
/** |
782 |
|
c.put("sadsdf", "asdads"); |
783 |
|
c.remove(null); |
784 |
|
shouldThrow(); |
785 |
< |
} catch (NullPointerException e){} |
785 |
> |
} catch (NullPointerException e) {} |
786 |
|
} |
787 |
|
|
788 |
|
/** |
794 |
|
c.put("sadsdf", "asdads"); |
795 |
|
c.remove(null, "whatever"); |
796 |
|
shouldThrow(); |
797 |
< |
} catch (NullPointerException e){} |
797 |
> |
} catch (NullPointerException e) {} |
798 |
|
} |
799 |
|
|
800 |
|
/** |
805 |
|
ConcurrentSkipListMap c = new ConcurrentSkipListMap(); |
806 |
|
c.put("sadsdf", "asdads"); |
807 |
|
assertFalse(c.remove("sadsdf", null)); |
808 |
< |
} catch (NullPointerException e){ |
808 |
> |
} catch (NullPointerException e) { |
809 |
|
fail(); |
810 |
|
} |
811 |
|
} |
828 |
|
assertEquals(q.size(), r.size()); |
829 |
|
assertTrue(q.equals(r)); |
830 |
|
assertTrue(r.equals(q)); |
831 |
< |
} catch (Exception e){ |
831 |
> |
} catch (Exception e) { |
832 |
|
e.printStackTrace(); |
833 |
|
unexpectedException(); |
834 |
|
} |