Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for NullPointerException (0.28 sec)

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

          builder.add((String) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add("a", null, "b");
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TableCollectorsTest.java

          fail("Expected NullPointerException");
        } catch (NullPointerException expected) {
        }
        collector =
            TableCollectors.toImmutableTable(Cell::getRowKey, Cell::getColumnKey, Cell::getValue);
        try {
          Stream.of(immutableCell("one", "uno", 1), immutableCell("one", "uno", (Integer) null))
              .collect(collector);
          fail("Expected NullPointerException");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 16:03:18 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          builder.add((String) null);
          fail("expected NullPointerException"); // COV_NF_LINE
        } catch (NullPointerException expected) {
        }
    
        builder = this.<String>builder();
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException"); // COV_NF_LINE
        } catch (NullPointerException expected) {
        }
    
        builder = this.<String>builder();
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          builder.add((String) null);
          fail("expected NullPointerException"); // COV_NF_LINE
        } catch (NullPointerException expected) {
        }
    
        builder = this.<String>builder();
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException"); // COV_NF_LINE
        } catch (NullPointerException expected) {
        }
    
        builder = this.<String>builder();
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListTest.java

          builder.add((String) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add("a", null, "b");
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          try {
            entrySet.removeAll(null);
            fail("Expected NullPointerException.");
          } catch (NullPointerException expected) {
          }
        } else {
          try {
            entrySet.removeAll(null);
            fail("Expected UnsupportedOperationException or NullPointerException.");
          } catch (UnsupportedOperationException | NullPointerException e) {
            // Expected.
          }
        }
        assertInvariants(map);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  7. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          try {
            entrySet.removeAll(null);
            fail("Expected NullPointerException.");
          } catch (NullPointerException expected) {
          }
        } else {
          try {
            entrySet.removeAll(null);
            fail("Expected UnsupportedOperationException or NullPointerException.");
          } catch (UnsupportedOperationException | NullPointerException e) {
            // Expected.
          }
        }
        assertInvariants(map);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
      }
    
      public void testBuilderAddCopiesHandlesNullsCorrectly() {
        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
        try {
          builder.addCopies(null, 2);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 21K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

          fail();
        } catch (NullPointerException expected) {
        }
    
        try {
          ImmutableBiMap.of("one", 1, null, 2);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testOfNullValue() {
        try {
          ImmutableBiMap.of("one", null);
          fail();
        } catch (NullPointerException expected) {
        }
    
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMultiset.java

       *
       * @throws NullPointerException if {@code element} is null
       * @since 6.0 (source-compatible since 2.0)
       */
      public static <E> ImmutableMultiset<E> of(E element) {
        return copyFromElements(element);
      }
    
      /**
       * Returns an immutable multiset containing the given elements, in order.
       *
       * @throws NullPointerException if any element is null
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top