Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 356 for NullPointerException (0.42 sec)

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

        expectContents(expected);
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPut_nullKeyUnsupported() {
        assertThrows(NullPointerException.class, () -> put(nullKeyEntry));
        expectUnchanged();
        expectNullKeyMissingWhenNullKeysUnsupported(
            "Should not contain null key after unsupported put(null, value)");
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java

      public void testContainsEntryNullDisallowedBecauseKeyQueriesDisallowed() {
        assertThrows(NullPointerException.class, () -> multimap().containsEntry(null, v3()));
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testContainsEntryNullDisallowedBecauseValueQueriesDisallowed() {
        assertThrows(NullPointerException.class, () -> multimap().containsEntry(k3(), null));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java

            final VaMessenger<FessMessages> messageCode = messages -> messages.addErrorsInvalidQueryUnknown(UserMessages.GLOBAL_PROPERTY_KEY);
    
            final NullPointerException npeCause = new NullPointerException("Null query parameter");
            final IllegalStateException iseCause = new IllegalStateException("Invalid parser state");
            final OutOfMemoryError oomCause = new OutOfMemoryError("Query too large");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      public void testNullListener() {
        assertThrows(NullPointerException.class, () -> future.addListener(null, directExecutor()));
      }
    
      public void testNullExecutor() {
        assertThrows(NullPointerException.class, () -> future.addListener(doNothing(), null));
      }
    
      public void testNullTimeUnit() throws Exception {
        future.set(1);
        assertThrows(NullPointerException.class, () -> future.get(0, null));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java

        assertEquals("multiset.count(null) didn't return 0", 0, getMultiset().count(null));
      }
    
      @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES)
      public void testCount_null_forbidden() {
        assertThrows(NullPointerException.class, () -> getMultiset().count(null));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testCount_nullPresent() {
        initCollectionWithNullElement();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CollectPreconditions.java

    @GwtCompatible
    final class CollectPreconditions {
    
      static void checkEntryNotNull(Object key, Object value) {
        if (key == null) {
          throw new NullPointerException("null key in entry: null=" + value);
        } else if (value == null) {
          throw new NullPointerException("null value in entry: " + key + "=null");
        }
      }
    
      @CanIgnoreReturnValue
      static int checkNonnegative(int value, String name) {
        if (value < 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

        assertThrows(NullPointerException.class, () -> multimap().putAll(source));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPutAllRejectsNullKey() {
        Multimap<K, V> source = getSubjectGenerator().create(mapEntry(null, v0()));
        assertThrows(NullPointerException.class, () -> multimap().putAll(source));
        expectUnchanged();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 21:10:54 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        this(new TreeMap<K, V>(map));
      }
    
      private SafeTreeMap(NavigableMap<K, V> delegate) {
        this.delegate = delegate;
        if (delegate == null) {
          throw new NullPointerException();
        }
        for (K k : keySet()) {
          checkValid(k);
        }
      }
    
      @Override
      public @Nullable Entry<K, V> ceilingEntry(K key) {
        return delegate.ceilingEntry(checkValid(key));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

          // Returning successfully is not ideal, but tolerated.
        } catch (NullPointerException tolerated) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveAll_nullCollectionReferenceNonEmptySubject() {
        assertThrows(NullPointerException.class, () -> collection.removeAll(null));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapRemoveTester.java

      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testRemove_nullKeyQueriesUnsupported() {
        try {
          assertFalse(getMap().remove(null, v3()));
        } catch (NullPointerException tolerated) {
          // since the operation would be a no-op, the exception is not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top