Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 344 for NullPointerException (0.26 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        assertThrows(NullPointerException.class, () -> putAll(containsNullValue));
        expectUnchanged();
        expectNullValueMissingWhenNullValuesUnsupported(
            "Should not contain null value after unsupported putAll(containsNullValue)");
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_nullCollectionReference() {
        assertThrows(NullPointerException.class, () -> getMap().putAll(null));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableTable.java

       * input element is mapped to one cell in the returned table, with the rows, columns, and values
       * generated by applying the specified functions.
       *
       * <p>The returned {@code Collector} will throw a {@code NullPointerException} at collection time
       * if the row, column, or value functions return null on any input.
       *
       * @since 33.2.0 (available since 21.0 in guava-jre)
       */
      @SuppressWarnings("Java7ApiChecker")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/OptionalTest.java

        assertFalse(optionalName.isPresent());
      }
    
      public void testOf() {
        assertEquals("training", Optional.of("training").get());
      }
    
      public void testOf_null() {
        assertThrows(NullPointerException.class, () -> Optional.of(null));
      }
    
      public void testFromNullable() {
        Optional<String> optionalName = Optional.fromNullable("bob");
        assertEquals("bob", optionalName.get());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        assertThrows(NullPointerException.class, () -> putAll(containsNullValue));
        expectUnchanged();
        expectNullValueMissingWhenNullValuesUnsupported(
            "Should not contain null value after unsupported putAll(containsNullValue)");
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_nullCollectionReference() {
        assertThrows(NullPointerException.class, () -> getMap().putAll(null));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java

              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
              .put(NullPointerException.class, e -> e instanceof NullPointerException)
              .put(NumberFormatException.class, e -> e instanceof NumberFormatException)
              .put(RuntimeException.class, e -> e instanceof RuntimeException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/escape/ReflectionFreeAssertThrows.java

              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
              .put(NullPointerException.class, e -> e instanceof NullPointerException)
              .put(NumberFormatException.class, e -> e instanceof NumberFormatException)
              .put(RuntimeException.class, e -> e instanceof RuntimeException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/testing/ReflectionFreeAssertThrows.java

              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
              .put(NullPointerException.class, e -> e instanceof NullPointerException)
              .put(NumberFormatException.class, e -> e instanceof NumberFormatException)
              .put(RuntimeException.class, e -> e instanceof RuntimeException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/ReflectionFreeAssertThrows.java

              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
              .put(NullPointerException.class, e -> e instanceof NullPointerException)
              .put(NumberFormatException.class, e -> e instanceof NumberFormatException)
              .put(RuntimeException.class, e -> e instanceof RuntimeException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/ReflectionFreeAssertThrows.java

              .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)
              .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
              .put(NullPointerException.class, e -> e instanceof NullPointerException)
              .put(NumberFormatException.class, e -> e instanceof NumberFormatException)
              .put(RuntimeException.class, e -> e instanceof RuntimeException)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

      public void testRemove_nullNotSupported() {
        try {
          assertFalse(
              "remove(null) should return false or throw NullPointerException",
              collection.remove(null));
        } catch (NullPointerException tolerated) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_QUERIES})
      public void testRemove_nullAllowed() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top