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.7 by dl, Wed Dec 3 21:08:24 2003 UTC vs.
Revision 1.9 by dl, Sat Dec 27 19:26:43 2003 UTC

# Line 1 | Line 1
1   /*
2 < * Written by members of JCP JSR-166 Expert Group and released to the
3 < * public domain. Use, modify, and redistribute this code in any way
4 < * without acknowledgement. Other contributors include Andrew Wright,
5 < * Jeffrey Hayes, Pat Fischer, Mike Judd.
2 > * Written by Doug Lea with assistance from members of JCP JSR-166
3 > * Expert Group and released to the public domain, as explained at
4 > * http://creativecommons.org/licenses/publicdomain
5 > * Other contributors include Andrew Wright, Jeffrey Hayes,
6 > * Pat Fisher, Mike Judd.
7   */
8  
9   import junit.framework.*;
# Line 227 | Line 228 | public class ConcurrentHashMapTest exten
228       */
229      public void testReplace() {
230          ConcurrentHashMap map = map5();
231 <        assertFalse(map.replace(six, "Z"));
231 >        assertNull(map.replace(six, "Z"));
232          assertFalse(map.containsKey(six));
233      }
234  
# Line 236 | Line 237 | public class ConcurrentHashMapTest exten
237       */
238      public void testReplace2() {
239          ConcurrentHashMap map = map5();
240 <        assertTrue(map.replace(one, "Z"));
240 >        assertNotNull(map.replace(one, "Z"));
241          assertEquals("Z", map.get(one));
242      }
243  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines