Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testBuilderPutNullValue (0.18 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

      }
    
      public void testBuilderPutNullKey() {
        Builder<String, Integer> builder = new Builder<>();
        assertThrows(NullPointerException.class, () -> builder.put(null, 1));
      }
    
      public void testBuilderPutNullValue() {
        Builder<String, Integer> builder = new Builder<>();
        assertThrows(NullPointerException.class, () -> builder.put("one", null));
      }
    
      public void testBuilderPutNullKeyViaPutAll() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertThrows(
            NullPointerException.class, () -> builder.putAll((Multimap<String, Integer>) toPut));
      }
    
      public void testBuilderPutNullValue() {
        Multimap<String, @Nullable Integer> toPut = LinkedListMultimap.create();
        toPut.put("foo", null);
        ImmutableListMultimap.Builder<String, Integer> builder = ImmutableListMultimap.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertThrows(
            NullPointerException.class, () -> builder.putAll((Multimap<String, Integer>) toPut));
      }
    
      public void testBuilderPutNullValue() {
        Multimap<String, @Nullable Integer> toPut = LinkedListMultimap.create();
        toPut.put("foo", null);
        ImmutableListMultimap.Builder<String, Integer> builder = ImmutableListMultimap.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertThrows(
            NullPointerException.class, () -> builder.putAll((Multimap<String, Integer>) toPut));
      }
    
      public void testBuilderPutNullValue() {
        Multimap<String, @Nullable Integer> toPut = LinkedListMultimap.create();
        toPut.put("foo", null);
        ImmutableSetMultimap.Builder<String, Integer> builder = ImmutableSetMultimap.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      }
    
      public void testBuilderPutNullKey() {
        Builder<String, Integer> builder = new Builder<>();
        assertThrows(NullPointerException.class, () -> builder.put(null, 1));
      }
    
      public void testBuilderPutNullValue() {
        Builder<String, Integer> builder = new Builder<>();
        assertThrows(NullPointerException.class, () -> builder.put("one", null));
      }
    
      public void testBuilderPutNullKeyViaPutAll() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      }
    
      public void testBuilderPutNullKey() {
        Builder<String, Integer> builder = new Builder<>();
        assertThrows(NullPointerException.class, () -> builder.put(null, 1));
      }
    
      public void testBuilderPutNullValue() {
        Builder<String, Integer> builder = new Builder<>();
        assertThrows(NullPointerException.class, () -> builder.put("one", null));
      }
    
      public void testBuilderPutNullKeyViaPutAll() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.6K bytes
    - Viewed (0)
Back to top