--- jsr166/src/test/tck/ConcurrentHashMapTest.java 2003/12/03 21:08:24 1.7 +++ jsr166/src/test/tck/ConcurrentHashMapTest.java 2003/12/27 19:26:43 1.9 @@ -1,8 +1,9 @@ /* - * Written by members of JCP JSR-166 Expert Group and released to the - * public domain. Use, modify, and redistribute this code in any way - * without acknowledgement. Other contributors include Andrew Wright, - * Jeffrey Hayes, Pat Fischer, Mike Judd. + * Written by Doug Lea with assistance from members of JCP JSR-166 + * Expert Group and released to the public domain, as explained at + * http://creativecommons.org/licenses/publicdomain + * Other contributors include Andrew Wright, Jeffrey Hayes, + * Pat Fisher, Mike Judd. */ import junit.framework.*; @@ -227,7 +228,7 @@ public class ConcurrentHashMapTest exten */ public void testReplace() { ConcurrentHashMap map = map5(); - assertFalse(map.replace(six, "Z")); + assertNull(map.replace(six, "Z")); assertFalse(map.containsKey(six)); } @@ -236,7 +237,7 @@ public class ConcurrentHashMapTest exten */ public void testReplace2() { ConcurrentHashMap map = map5(); - assertTrue(map.replace(one, "Z")); + assertNotNull(map.replace(one, "Z")); assertEquals("Z", map.get(one)); }