# | Line 501 | Line 501 | public class ConcurrentHashMapTest exten | |
---|---|---|
501 | } | |
502 | ||
503 | /** | |
504 | + | * remove(x, null) returns false |
505 | + | */ |
506 | + | public void testRemove3() { |
507 | + | try { |
508 | + | ConcurrentHashMap c = new ConcurrentHashMap(5); |
509 | + | c.put("sadsdf", "asdads"); |
510 | + | assertFalse(c.remove("sadsdf", null)); |
511 | + | } catch(NullPointerException e){ |
512 | + | fail(); |
513 | + | } |
514 | + | } |
515 | + | |
516 | + | /** |
517 | * A deserialized map equals original | |
518 | */ | |
519 | public void testSerialization() { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |