Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for testReplace (0.11 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
Back to Top