343 |
|
map.remove(four, "A"); |
344 |
|
assertEquals(4, map.size()); |
345 |
|
assertTrue(map.containsKey(four)); |
346 |
– |
|
346 |
|
} |
347 |
|
|
348 |
|
/** |
361 |
|
|
362 |
|
Map.Entry e4 = map.lowerEntry(zero); |
363 |
|
assertNull(e4); |
365 |
– |
|
364 |
|
} |
365 |
|
|
366 |
|
/** |
379 |
|
|
380 |
|
Map.Entry e4 = map.higherEntry(six); |
381 |
|
assertNull(e4); |
384 |
– |
|
382 |
|
} |
383 |
|
|
384 |
|
/** |
397 |
|
|
398 |
|
Map.Entry e4 = map.floorEntry(zero); |
399 |
|
assertNull(e4); |
403 |
– |
|
400 |
|
} |
401 |
|
|
402 |
|
/** |
415 |
|
|
416 |
|
Map.Entry e4 = map.ceilingEntry(six); |
417 |
|
assertNull(e4); |
422 |
– |
|
418 |
|
} |
419 |
|
|
420 |
|
/** |
1030 |
|
map.remove(m4, "A"); |
1031 |
|
assertEquals(4, map.size()); |
1032 |
|
assertTrue(map.containsKey(m4)); |
1038 |
– |
|
1033 |
|
} |
1034 |
|
|
1035 |
|
/** |
1048 |
|
|
1049 |
|
Map.Entry e4 = map.lowerEntry(zero); |
1050 |
|
assertNull(e4); |
1057 |
– |
|
1051 |
|
} |
1052 |
|
|
1053 |
|
/** |
1066 |
|
|
1067 |
|
Map.Entry e4 = map.higherEntry(m6); |
1068 |
|
assertNull(e4); |
1076 |
– |
|
1069 |
|
} |
1070 |
|
|
1071 |
|
/** |
1084 |
|
|
1085 |
|
Map.Entry e4 = map.floorEntry(zero); |
1086 |
|
assertNull(e4); |
1095 |
– |
|
1087 |
|
} |
1088 |
|
|
1089 |
|
/** |
1102 |
|
|
1103 |
|
Map.Entry e4 = map.ceilingEntry(m6); |
1104 |
|
assertNull(e4); |
1114 |
– |
|
1105 |
|
} |
1106 |
|
|
1107 |
|
/** |
1182 |
|
// Exception testDescendings |
1183 |
|
|
1184 |
|
/** |
1185 |
< |
* get(null) of nm1mpty map throws NPE |
1185 |
> |
* get(null) of empty map throws NPE |
1186 |
|
*/ |
1187 |
|
public void testDescendingGet_NullPointerException() { |
1188 |
|
try { |
1193 |
|
} |
1194 |
|
|
1195 |
|
/** |
1196 |
< |
* containsKey(null) of nm1mpty map throws NPE |
1196 |
> |
* containsKey(null) of empty map throws NPE |
1197 |
|
*/ |
1198 |
|
public void testDescendingContainsKey_NullPointerException() { |
1199 |
|
try { |