275 |
|
assertEquals("Z", map.get(one)); |
276 |
|
} |
277 |
|
|
278 |
– |
|
278 |
|
/** |
279 |
|
* replace value fails when the given key not mapped to expected value |
280 |
|
*/ |
295 |
|
assertEquals("Z", map.get(one)); |
296 |
|
} |
297 |
|
|
299 |
– |
|
298 |
|
/** |
299 |
|
* remove removes the correct key-value pair from the map |
300 |
|
*/ |
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 |
|
|
481 |
|
} catch (NullPointerException success) {} |
482 |
|
} |
483 |
|
|
486 |
– |
|
484 |
|
/** |
485 |
|
* replace(x, null) throws NPE |
486 |
|
*/ |
514 |
|
} catch (NullPointerException success) {} |
515 |
|
} |
516 |
|
|
520 |
– |
|
517 |
|
/** |
518 |
|
* remove(null) throws NPE |
519 |
|
*/ |
566 |
|
assertTrue(r.equals(q)); |
567 |
|
} |
568 |
|
|
573 |
– |
|
569 |
|
/** |
570 |
|
* SetValue of an EntrySet entry sets value in the map. |
571 |
|
*/ |