- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for testReplace (0.21 seconds)
-
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"));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 2.5K bytes - Click Count (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"));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 11.4K bytes - Click Count (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);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (0) -
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);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (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]);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (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 {Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java
assertTrue(e.getMessage().contains("Crawler Process terminated")); } } @Test public void test_startProcess_replaceExistingProcess() { String sessionId = "test_replace"; // Use sleep commands that run longer so we can verify they're running List<String> cmdList1 = Arrays.asList("sleep", "10"); List<String> cmdList2 = Arrays.asList("sleep", "10");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 16K bytes - Click Count (0)