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

Comparing jsr166/src/test/tck/ConcurrentHashMapTest.java (file contents):
Revision 1.11 by dl, Fri Jul 2 10:26:28 2004 UTC vs.
Revision 1.12 by dl, Fri May 20 14:31:06 2005 UTC

# 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() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines