Lines Matching defs:keySet

1454         synchMap.keySet().remove(objArray[50].toString());
1456 "Removing a key from the keySet of the synchronized map did not remove it from the synchronized map: ",
1459 "Removing a key from the keySet of the synchronized map did not remove it from the original map",
1465 // entrySet() / keySet() methods: iterator(), toArray(T[]) and toArray(). See bug 72073.
1577 synchMap.keySet().remove(objArray[50].toString());
1579 "Removing a key from the keySet of the synchronized map did not remove it from the synchronized map",
1582 "Removing a key from the keySet of the synchronized map did not remove it from the original map",
1760 Iterator iterator = hm.keySet().iterator();
1884 Iterator i = hm.keySet().iterator();
2102 Iterator mapIter = map.keySet().iterator();
2270 // keySet()
2271 testKeySet(modifiableMap.keySet(), unmodifiableMap.keySet());
2310 private static void testKeySet(Set<String> referenceKeySet, Set<String> keySet) {
2311 // keySet should be a set of the strings "0" to "99"
2313 testKeySetContents(keySet);
2318 crossCheckOrdering(referenceKeySet, keySet, String.class);
2321 private static void testKeySetContents(Set<String> keySet) {
2323 assertTrue("should contain \"0\"", keySet.contains("0"));
2324 assertTrue("should contain \"50\"", keySet.contains("50"));
2325 assertTrue("should not contain \"100\"", !keySet.contains("100"));
2332 assertTrue("Should contain set of \"0\", \"25\", and \"99\"", keySet.containsAll(hs));
2335 !keySet.containsAll(hs));
2338 assertTrue("Should not be empty", !keySet.isEmpty());
2341 assertEquals("Returned wrong size.", 100, keySet.size());