Lines Matching refs:newValue

414     final V newValue;
417 newValue = getValueNotInPopulatedMap();
425 assertEquals(oldValue, map.replace(keyToReplace, newValue));
426 assertEquals(newValue, map.get(keyToReplace));
428 assertTrue(map.containsValue(newValue));
432 map.replace(keyToReplace, newValue);
444 final V newValue;
448 newValue = getValueNotInPopulatedMap();
454 assertNull(map.replace(keyToReplace, newValue));
457 assertFalse(map.containsValue(newValue));
461 map.replace(keyToReplace, newValue);
569 * Replace3 tests call 3-parameter replace(key, oldValue, newValue)
576 final V newValue;
579 newValue = getValueNotInPopulatedMap();
587 assertTrue(map.replace(keyToReplace, oldValue, newValue));
588 assertEquals(newValue, map.get(keyToReplace));
590 assertTrue(map.containsValue(newValue));
595 map.replace(keyToReplace, oldValue, newValue);
608 final V newValue;
612 newValue = getSecondValueNotInPopulatedMap();
620 assertFalse(map.replace(keyToReplace, oldValue, newValue));
623 map.replace(keyToReplace, oldValue, newValue);
630 assertFalse(map.containsValue(newValue));
641 final V newValue;
646 newValue = getSecondValueNotInPopulatedMap();
652 assertFalse(map.replace(keyToReplace, oldValue, newValue));
655 map.replace(keyToReplace, oldValue, newValue);
662 assertFalse(map.containsValue(newValue));
674 final V newValue;
678 newValue = getSecondValueNotInPopulatedMap();
685 assertFalse(map.replace(null, oldValue, newValue));
691 assertFalse(map.replace(null, oldValue, newValue));
708 final V newValue;
711 newValue = getValueNotInPopulatedMap();
720 assertFalse(map.replace(keyToReplace, null, newValue));
726 assertFalse(map.replace(keyToReplace, null, newValue));
744 final V newValue;
748 newValue = getValueNotInPopulatedMap();
755 assertFalse(map.replace(keyToReplace, null, newValue));
761 assertFalse(map.replace(keyToReplace, null, newValue));