Home
last modified time | relevance | path

Searched refs:EXTRA_KEY (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/util/Map/
DDefaults.java84 assertFalse(map.containsKey(EXTRA_KEY), "expected absent key"); in testGetOrDefault()
85 …assertSame(map.getOrDefault(EXTRA_KEY, EXTRA_VALUE), EXTRA_VALUE, "value not returned as default"); in testGetOrDefault()
86 assertNull(map.getOrDefault(EXTRA_KEY, null), "null not returned as default"); in testGetOrDefault()
123 assertFalse(map.containsKey(EXTRA_KEY)); in testPutIfAbsent()
124 assertSame(map.putIfAbsent(EXTRA_KEY, EXTRA_VALUE), null); in testPutIfAbsent()
125 assertSame(map.get(EXTRA_KEY), EXTRA_VALUE); in testPutIfAbsent()
126 assertSame(map.putIfAbsent(EXTRA_KEY, VALUES[2]), EXTRA_VALUE); in testPutIfAbsent()
127 assertSame(map.get(EXTRA_KEY), EXTRA_VALUE); in testPutIfAbsent()
195 assertFalse(map.containsKey(EXTRA_KEY)); in testRemove()
196 assertFalse(map.remove(EXTRA_KEY, EXTRA_VALUE)); in testRemove()
[all …]
DBasicSerialization.java67 EXTRA_KEY; enumConstant
88 private static final IntegerEnum EXTRA_KEY = IntegerEnum.EXTRA_KEY; field in BasicSerialization
89 private static final String EXTRA_VALUE = IntegerEnum.EXTRA_KEY.name();
137 assertFalse(map.containsKey(EXTRA_KEY), description + ":unexpected key"); in testSerialization()
138 assertFalse(clone.containsKey(EXTRA_KEY), description + ":unexpected key"); in testSerialization()
139 assertFalse(serialClone.containsKey(EXTRA_KEY), description + ":unexpected key"); in testSerialization()
140 map.put(EXTRA_KEY, EXTRA_VALUE); in testSerialization()
141 clone.put(EXTRA_KEY, EXTRA_VALUE); in testSerialization()
142 serialClone.put(EXTRA_KEY, EXTRA_VALUE); in testSerialization()
143 assertTrue(map.containsKey(EXTRA_KEY), description + ":missing key"); in testSerialization()
[all …]