Home | History | Annotate | Download | only in cache

Lines Matching defs:newKey

92         Object newKey = new Object();
93 assertNull(cache.asMap().put(newKey, entry.getValue()));
96 assertEquals(entry.getValue(), cache.getUnchecked(newKey));
98 warmed.add(entryOf(newKey, entry.getValue()));
113 Object newKey = new Object();
114 assertNull(cache.asMap().putIfAbsent(newKey, entry.getValue()));
117 assertEquals(entry.getValue(), cache.getUnchecked(newKey));
119 warmed.add(entryOf(newKey, entry.getValue()));
130 Object newKey = new Object();
132 cache.asMap().putAll(ImmutableMap.of(newKey, newValue));
134 assertEquals(newValue, cache.getUnchecked(newKey));
149 Object newKey = new Object();
150 assertNull(cache.asMap().replace(newKey, entry.getValue()));
151 assertFalse(cache.asMap().replace(newKey, entry.getValue(), newValue));
154 assertFalse(cache.asMap().containsKey(newKey));