- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for testReplace (0.04 sec)
-
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
assertFalse(map.remove("bar", 1)); assertEquals(Integer.valueOf(1), map.get("foo")); assertTrue(map.remove("foo", 1)); assertTrue(map.isEmpty()); } public void testReplace() { TestMap map = new TestMap(); map.put("foo", 1); assertEquals(Integer.valueOf(1), map.replace("foo", 2)); assertThat(map.replace("bar", 3)).isNull(); assertEquals(Integer.valueOf(2), map.get("foo"));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/StringUtilTest.java
import java.lang.reflect.Method; import org.junit.Test; /** * @author higa * */ public class StringUtilTest { /** * @throws Exception */ @Test public void testReplace() throws Exception { assertEquals("1", "1bc45", StringUtil.replace("12345", "23", "bc")); assertEquals("2", "1234ef", StringUtil.replace("12345", "5", "ef"));Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 11.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
assertEquals(0L, map.get(key)); assertTrue(map.containsKey(key)); assertEquals(0L, map.putIfAbsent(key, value)); assertEquals(value, map.get(key)); } public void testReplace() { AtomicLongMap<String> map = AtomicLongMap.create(); String key = "key"; long newValue = random.nextInt(MAX_ADDEND); for (int i = 0; i < ITERATIONS; i++) { long before = map.get(key);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
} /** * Test replace method */ @Test @DisplayName("Replace should remove old and add new") void testReplace() { List<AvPair> pairs = new LinkedList<>(); AvFlags oldFlags1 = new AvFlags(0x11111111); AvFlags oldFlags2 = new AvFlags(0x22222222); AvTimestamp timestamp = new AvTimestamp(new byte[8]);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/bytes/bytes_test.go
{"banana", "", "<>", 1, "<>banana"}, {"banana", "a", "a", -1, "banana"}, {"banana", "a", "a", 1, "banana"}, {"☺☻☹", "", "<>", -1, "<>☺<>☻<>☹<>"}, } func TestReplace(t *testing.T) { for _, tt := range ReplaceTests { var ( in = []byte(tt.in) old = []byte(tt.old) new = []byte(tt.new) ) if !asan.Enabled {Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Dec 23 23:54:14 UTC 2025 - 62.9K bytes - Viewed (0)