Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testBuilderAddHandlesNullsCorrectly (0.31 sec)

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

            new ImmutableMultiset.Builder<String>().add("a").setCount("a", 2).setCount("b", 3).build();
        assertEquals(HashMultiset.create(asList("a", "a", "b", "b", "b")), multiset);
      }
    
      public void testBuilderAddHandlesNullsCorrectly() {
        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
        assertThrows(NullPointerException.class, () -> builder.add((String) null));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

            new ImmutableMultiset.Builder<String>().add("a").setCount("a", 2).setCount("b", 3).build();
        assertEquals(HashMultiset.create(asList("a", "a", "b", "b", "b")), multiset);
      }
    
      public void testBuilderAddHandlesNullsCorrectly() {
        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
        assertThrows(NullPointerException.class, () -> builder.add((String) null));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

                .setCount("a", 2)
                .setCount("b", 3)
                .build();
        assertEquals(HashMultiset.create(asList("a", "a", "b", "b", "b")), multiset);
      }
    
      public void testBuilderAddHandlesNullsCorrectly() {
        ImmutableSortedMultiset.Builder<String> builder = ImmutableSortedMultiset.naturalOrder();
        assertThrows(NullPointerException.class, () -> builder.add((String) null));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertEquals(getComplexBuilderSetLastElement(), (int) appendColorArray[216]);
      }
    
      abstract int getComplexBuilderSetLastElement();
    
      public void testBuilderAddHandlesNullsCorrectly() {
        {
        ImmutableSet.Builder<String> builder = this.<String>builder();
          assertThrows(NullPointerException.class, () -> builder.add((String) null));
        }
    
        {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Integer[] appendColorArray = addedColor.toArray(new Integer[addedColor.size()]);
        assertEquals(0x00BFFF, (int) appendColorArray[216]);
      }
    
      public void testBuilderAddHandlesNullsCorrectly() {
        ImmutableList.Builder<String> builder = ImmutableList.builder();
        assertThrows(NullPointerException.class, () -> builder.add((String) null));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Integer[] appendColorArray = addedColor.toArray(new Integer[addedColor.size()]);
        assertEquals(0x00BFFF, (int) appendColorArray[216]);
      }
    
      public void testBuilderAddHandlesNullsCorrectly() {
        ImmutableList.Builder<String> builder = ImmutableList.builder();
        assertThrows(NullPointerException.class, () -> builder.add((String) null));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top