Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for singletonMap (0.09 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static java.util.Collections.singleton;
    import static java.util.Collections.singletonMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.testing.features.CollectionSize;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static java.util.Collections.singletonList;
    import static java.util.Collections.singletonMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Lists;
    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.collect.testing.features.MapFeature;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static java.util.Collections.singletonList;
    import static java.util.Collections.singletonMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Lists;
    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.collect.testing.features.MapFeature;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            // Full NTLM handshake testing would require more complex mocking
    
            // Arrange - Mock a server that supports NTLM
            mockResponse(HTTP_UNAUTHORIZED, "Unauthorized", Collections.singletonMap("WWW-Authenticate", Collections.singletonList("NTLM")),
                    new ByteArrayInputStream(new byte[0]));
    
            // Act - Trigger handshake
            int responseCode = ntlmConnection.getResponseCode();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. api/maven-api-model/src/main/java/org/apache/maven/api/model/InputLocation.java

        public InputLocation(InputSource source) {
            this.lineNumber = -1;
            this.columnNumber = -1;
            this.source = source;
            this.locations = Collections.singletonMap(0, this);
            this.importedFrom = null;
        }
    
        public InputLocation(int lineNumber, int columnNumber) {
            this(lineNumber, columnNumber, null, null);
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_REMOVE;
    import static java.util.Collections.singleton;
    import static java.util.Collections.singletonMap;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.testing.features.CollectionSize;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

            NullPointerException.class,
            () -> builder.putAll(Collections.<String, Integer>singletonMap(null, 1)));
      }
    
      public void testBuilderPutNullValueViaPutAll() {
        Builder<String, Integer> builder = new Builder<>();
        assertThrows(
            NullPointerException.class,
            () -> builder.putAll(Collections.<String, Integer>singletonMap("one", null)));
      }
    
      @SuppressWarnings("AlwaysThrows")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                  @Override
                  protected Map<String, String> create(Entry<String, String>[] entries) {
                    return singletonMap(entries[0].getKey(), entries[0].getValue());
                  }
                })
            .named("singletonMap")
            .withFeatures(
                MapFeature.ALLOWS_NULL_KEYS,
                MapFeature.ALLOWS_NULL_VALUES,
                MapFeature.ALLOWS_ANY_NULL_QUERIES,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 17.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

            () -> builder.putAll(Collections.<String, Integer>singletonMap(null, 1)));
      }
    
      public void testBuilderPutNullValueViaPutAll() {
        Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
        assertThrows(
            NullPointerException.class,
            () -> builder.putAll(Collections.<String, Integer>singletonMap("one", null)));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

                  @Override
                  protected Map<String, String> create(Entry<String, String>[] entries) {
                    return singletonMap(entries[0].getKey(), entries[0].getValue());
                  }
                })
            .named("singletonMap")
            .withFeatures(
                MapFeature.ALLOWS_NULL_KEYS,
                MapFeature.ALLOWS_NULL_VALUES,
                MapFeature.ALLOWS_ANY_NULL_QUERIES,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 21.8K bytes
    - Viewed (0)
Back to top