Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReplace (0.06 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. 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: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top