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.23 by jsr166, Tue Mar 15 19:47:06 2011 UTC vs.
Revision 1.24 by jsr166, Fri May 27 19:26:42 2011 UTC

# Line 275 | Line 275 | public class ConcurrentHashMapTest exten
275          assertEquals("Z", map.get(one));
276      }
277  
278
278      /**
279       * replace value fails when the given key not mapped to expected value
280       */
# Line 296 | Line 295 | public class ConcurrentHashMapTest exten
295          assertEquals("Z", map.get(one));
296      }
297  
299
298      /**
299       * remove removes the correct key-value pair from the map
300       */
# Line 337 | Line 335 | public class ConcurrentHashMapTest exten
335          ConcurrentHashMap map = map5();
336          String s = map.toString();
337          for (int i = 1; i <= 5; ++i) {
338 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
338 >            assertTrue(s.contains(String.valueOf(i)));
339          }
340      }
341  
# Line 483 | Line 481 | public class ConcurrentHashMapTest exten
481          } catch (NullPointerException success) {}
482      }
483  
486
484      /**
485       * replace(x, null) throws NPE
486       */
# Line 517 | Line 514 | public class ConcurrentHashMapTest exten
514          } catch (NullPointerException success) {}
515      }
516  
520
517      /**
518       * remove(null) throws NPE
519       */
# Line 570 | Line 566 | public class ConcurrentHashMapTest exten
566          assertTrue(r.equals(q));
567      }
568  
573
569      /**
570       * SetValue of an EntrySet entry sets value in the map.
571       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines