Searched refs:hashMap (Results 1 – 5 of 5) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | WeakHashMapTest.java | 519 WeakHashMap<String, String> hashMap = new WeakHashMap<>(); in test_spliterator_keySet() local 520 hashMap.put("a", "1"); in test_spliterator_keySet() 521 hashMap.put("b", "2"); in test_spliterator_keySet() 522 hashMap.put("c", "3"); in test_spliterator_keySet() 523 hashMap.put("d", "4"); in test_spliterator_keySet() 524 hashMap.put("e", "5"); in test_spliterator_keySet() 525 hashMap.put("f", "6"); in test_spliterator_keySet() 526 hashMap.put("g", "7"); in test_spliterator_keySet() 527 hashMap.put("h", "8"); in test_spliterator_keySet() 528 hashMap.put("i", "9"); in test_spliterator_keySet() [all …]
|
D | IdentityHashMapTest.java | 378 IdentityHashMap<String, String> hashMap = new IdentityHashMap<String, String>(); in test_removeLjava_lang_Object() local 379 hashMap.remove("absent"); in test_removeLjava_lang_Object() 380 assertEquals("Assert 0: Size is incorrect", 0, hashMap.size()); in test_removeLjava_lang_Object() 382 hashMap.put("key", "value"); in test_removeLjava_lang_Object() 383 hashMap.remove("key"); in test_removeLjava_lang_Object() 384 … assertEquals("Assert 1: After removing non-null element size is incorrect", 0, hashMap.size()); in test_removeLjava_lang_Object() 386 hashMap.put(null, null); in test_removeLjava_lang_Object() 387 assertEquals("Assert 2: adding literal null failed", 1, hashMap.size()); in test_removeLjava_lang_Object() 388 hashMap.remove(null); in test_removeLjava_lang_Object() 389 assertEquals("Assert 3: After removing null element size is incorrect", 0, hashMap.size()); in test_removeLjava_lang_Object() [all …]
|
D | LinkedHashMapTest.java | 429 LinkedHashMap hashMap = new MockMap(); in test_clone_Mock() local 431 hashMap.put("key", value); in test_clone_Mock() 432 MockMap cloneMap = (MockMap) hashMap.clone(); in test_clone_Mock() 434 assertEquals(hashMap, cloneMap); in test_clone_Mock() 437 hashMap.put("key", "value b"); in test_clone_Mock() 438 assertFalse(hashMap.equals(cloneMap)); in test_clone_Mock() 825 LinkedHashMap<String, String> hashMap = new LinkedHashMap<>(); in test_spliterator_keySet() local 826 hashMap.put("a", "1"); in test_spliterator_keySet() 827 hashMap.put("b", "2"); in test_spliterator_keySet() 828 hashMap.put("c", "3"); in test_spliterator_keySet() [all …]
|
D | HashMapTest.java | 497 HashMap hashMap = new HashMap(); in test_putAllLjava_util_Map_Null() local 499 hashMap.putAll(new MockMapNull()); in test_putAllLjava_util_Map_Null() 506 hashMap = new HashMap(new MockMapNull()); in test_putAllLjava_util_Map_Null() 823 HashMap<String, String> hashMap = new HashMap<>(); in test_spliterator_keySet() local 824 hashMap.put("a", "1"); in test_spliterator_keySet() 825 hashMap.put("b", "2"); in test_spliterator_keySet() 826 hashMap.put("c", "3"); in test_spliterator_keySet() 827 hashMap.put("d", "4"); in test_spliterator_keySet() 828 hashMap.put("e", "5"); in test_spliterator_keySet() 829 hashMap.put("f", "6"); in test_spliterator_keySet() [all …]
|
D | EnumMapTest.java | 590 HashMap hashMap = new HashMap(); in test_equalsLjava_lang_Object() local 591 hashMap.put(Size.Small, 1); in test_equalsLjava_lang_Object() 592 assertFalse("Returned true for unequal EnumMap", hashMap in test_equalsLjava_lang_Object() 594 hashMap.put(Size.Big, null); in test_equalsLjava_lang_Object() 595 assertTrue("Returned false for equal EnumMap", enumMap.equals(hashMap)); in test_equalsLjava_lang_Object()
|