72 |
|
assertEquals(map.size(), 0); |
73 |
|
} |
74 |
|
|
75 |
– |
|
75 |
|
/** |
76 |
|
* Maps with same contents are equal |
77 |
|
*/ |
140 |
|
assertEquals(five, map.lastKey()); |
141 |
|
} |
142 |
|
|
144 |
– |
|
143 |
|
/** |
144 |
|
* keySet returns a Set containing all the keys |
145 |
|
*/ |
226 |
|
assertTrue(s.contains("E")); |
227 |
|
} |
228 |
|
|
231 |
– |
|
229 |
|
/** |
230 |
|
* entrySet contains all pairs |
231 |
|
*/ |
295 |
|
assertEquals("Z", map.get(one)); |
296 |
|
} |
297 |
|
|
301 |
– |
|
298 |
|
/** |
299 |
|
* replace value fails when the given key not mapped to expected value |
300 |
|
*/ |
315 |
|
assertEquals("Z", map.get(one)); |
316 |
|
} |
317 |
|
|
322 |
– |
|
318 |
|
/** |
319 |
|
* remove removes the correct key-value pair from the map |
320 |
|
*/ |
483 |
|
ConcurrentNavigableMap map = map5(); |
484 |
|
String s = map.toString(); |
485 |
|
for (int i = 1; i <= 5; ++i) { |
486 |
< |
assertTrue(s.indexOf(String.valueOf(i)) >= 0); |
486 |
> |
assertTrue(s.contains(String.valueOf(i))); |
487 |
|
} |
488 |
|
} |
489 |
|
|
522 |
|
} catch (NullPointerException success) {} |
523 |
|
} |
524 |
|
|
530 |
– |
|
525 |
|
/** |
526 |
|
* put(null,x) throws NPE |
527 |
|
*/ |
607 |
|
assertTrue(r.equals(q)); |
608 |
|
} |
609 |
|
|
616 |
– |
|
617 |
– |
|
610 |
|
/** |
611 |
|
* subMap returns map with keys in requested range |
612 |
|
*/ |
751 |
|
assertEquals(map.size(), 0); |
752 |
|
} |
753 |
|
|
762 |
– |
|
754 |
|
/** |
755 |
|
* Maps with same contents are equal |
756 |
|
*/ |
819 |
|
assertEquals(m5, map.lastKey()); |
820 |
|
} |
821 |
|
|
831 |
– |
|
822 |
|
/** |
823 |
|
* keySet returns a Set containing all the keys |
824 |
|
*/ |
905 |
|
assertTrue(s.contains("E")); |
906 |
|
} |
907 |
|
|
918 |
– |
|
908 |
|
/** |
909 |
|
* entrySet contains all pairs |
910 |
|
*/ |
974 |
|
assertEquals("Z", map.get(m1)); |
975 |
|
} |
976 |
|
|
988 |
– |
|
977 |
|
/** |
978 |
|
* replace value fails when the given key not mapped to expected value |
979 |
|
*/ |
994 |
|
assertEquals("Z", map.get(m1)); |
995 |
|
} |
996 |
|
|
1009 |
– |
|
997 |
|
/** |
998 |
|
* remove removes the correct key-value pair from the map |
999 |
|
*/ |
1162 |
|
ConcurrentNavigableMap map = dmap5(); |
1163 |
|
String s = map.toString(); |
1164 |
|
for (int i = 1; i <= 5; ++i) { |
1165 |
< |
assertTrue(s.indexOf(String.valueOf(i)) >= 0); |
1165 |
> |
assertTrue(s.contains(String.valueOf(i))); |
1166 |
|
} |
1167 |
|
} |
1168 |
|
|
1201 |
|
} catch (NullPointerException success) {} |
1202 |
|
} |
1203 |
|
|
1217 |
– |
|
1204 |
|
/** |
1205 |
|
* put(null,x) throws NPE |
1206 |
|
*/ |
1286 |
|
assertTrue(r.equals(q)); |
1287 |
|
} |
1288 |
|
|
1303 |
– |
|
1289 |
|
/** |
1290 |
|
* subMap returns map with keys in requested range |
1291 |
|
*/ |