Home
last modified time | relevance | path

Searched refs:KEYS (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/util/Map/
DDefaults.java82 assertTrue(map.containsKey(KEYS[1]), "expected key missing"); in testGetOrDefault()
83 assertSame(map.get(KEYS[1]), map.getOrDefault(KEYS[1], EXTRA_VALUE), "values should match"); in testGetOrDefault()
116 assertTrue(map.containsKey(KEYS[1])); in testPutIfAbsent()
117 Object expected = map.get(KEYS[1]); in testPutIfAbsent()
119 assertSame(map.putIfAbsent(KEYS[1], EXTRA_VALUE), expected); in testPutIfAbsent()
120 assertSame(map.get(KEYS[1]), expected); in testPutIfAbsent()
137 EACH_KEY[idx] = (idx == 0) ? KEYS[0] : k; // substitute for comparison. in testForEach()
141 assertEquals(KEYS, EACH_KEY, description); in testForEach()
152 EACH_KEY[idx] = (idx == 0) ? KEYS[0] : k; // substitute for comparison. in testReplaceAll()
159 assertEquals(KEYS, EACH_KEY, description); in testReplaceAll()
[all …]
DToArray.java65 private static final Integer[] KEYS = new Integer[TEST_SIZE]; field in ToArray
71 KEYS[each] = Integer.valueOf(each);
81 map.put(KEYS[each], VALUES[each]); in testMap()
89 Assert.assertTrue( keys[each] == KEYS[each]); in testMap()
108 …Assert.assertTrue( entries[each].getKey() == KEYS[each] && entries[each].getValue() == VALUES[each… in testMap()
DBasicSerialization.java74 private static final IntegerEnum[] KEYS = new IntegerEnum[TEST_SIZE]; field in BasicSerialization
84 KEYS[each] = keys[each];
218 result.put(KEYS[each], VALUES[each]); in fillMap()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTestSupport.java71 static String [] KEYS = {KEY_IS_START_DOC, KEY_IS_END_DOC, KEY_TEXT, field in SAXParserTestSupport
109 if(i < KEYS.length) { in readFile()
110 storage.put(KEYS[i], str.toString()); in readFile()
154 for(int i = 0; i < KEYS.length; i++) { in equalsMaps()
155 if(!original.get(KEYS[i]).equals(result.get(KEYS[i]))) { in equalsMaps()
156 System.out.println("for "+KEYS[i]+": original:" + in equalsMaps()
157 original.get(KEYS[i])); in equalsMaps()
159 System.out.println(" result:" + result.get(KEYS[i])); in equalsMaps()
/libcore/ojluni/src/main/java/java/util/
DHashtable.java275 return this.<K>getEnumeration(KEYS); in keys()
670 return getIterator(KEYS); in iterator()
1443 private static final int KEYS = 0; field in Hashtable
1506 return type == KEYS ? (T)e.key : (type == VALUES ? (T)e.value : (T)e); in nextElement()