Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withKeyValueSeparator (0.13 sec)

  1. guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      public void testMapSplitter_emptySeparator() {
        assertThrows(IllegalArgumentException.class, () -> COMMA_SPLITTER.withKeyValueSeparator(""));
      }
    
      public void testMapSplitter_malformedEntry() {
        assertThrows(
            IllegalArgumentException.class,
            () -> COMMA_SPLITTER.withKeyValueSeparator("=").split("a=1,b,c=2"));
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/JoinerTest.java

        Joiner j = Joiner.on("x").useForNull("y");
        assertThrows(UnsupportedOperationException.class, () -> j.useForNull("y"));
      }
    
      public void testMap() {
        MapJoiner j = Joiner.on(';').withKeyValueSeparator(':');
        assertEquals("", j.join(ImmutableMap.of()));
        assertEquals(":", j.join(ImmutableMap.of("", "")));
    
        Map<@Nullable String, @Nullable String> mapWithNulls = new LinkedHashMap<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top