Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 471 for NullPointerException (0.29 sec)

  1. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            @Test
            @DisplayName("null handle throws NPE")
            void nullHandle() {
                assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(null, tree));
            }
    
            @Test
            @DisplayName("null tree throws NPE")
            void nullTree() {
                assertThrows(NullPointerException.class, () -> new SmbPipeInputStream(handle, null));
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java

        try {
          assertEquals(
              "getOrDefault(null, def) should return default or throw",
              v3(),
              getMap().getOrDefault(null, v3()));
        } catch (NullPointerException tolerated) {
        }
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testGetOrDefault_nonNullWhenNullContained() {
        initMapWithNullKey();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Predicate.java

       *       Objects.equal}{@code (a, b)} implies that {@code predicate.apply(a) ==
       *       predicate.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this predicate does not accept null
       *     arguments
       */
      boolean apply(@ParametricNullness T input);
    
      /**
       * Indicates whether another object is equal to this predicate.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 18 15:22:00 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

            new WrappedHashMapGenerator() {
              @Override
              Map<String, String> wrap(HashMap<String, String> map) {
                if (map.containsKey(null)) {
                  throw new NullPointerException();
                }
                return new AbstractMap<String, String>() {
                  @Override
                  public Set<Entry<String, String>> entrySet() {
                    return map.entrySet();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 22 16:18:11 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java

      public void testContainsNullValueNo() {
        assertFalse(multimap().containsValue(null));
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testContainsNullValueFails() {
        assertThrows(NullPointerException.class, () -> multimap().containsValue(null));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

                fail("Should have thrown exception");
            } catch (Exception e) {
                // Expected exception (either InvalidQueryException or NullPointerException)
                assertTrue(e instanceof InvalidQueryException || e instanceof NullPointerException);
            }
        }
    
        public void test_execute_withComplexBooleanQuery() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java

            try {
                final boolean result = validator.isValid("test", null);
                assertNotNull("isValid should return a boolean result", Boolean.valueOf(result));
            } catch (final NullPointerException e) {
                // This is expected if the implementation requires a non-null context
                assertTrue("NPE is acceptable for null context in this implementation", true);
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ClusterException.java

       * java.util.List} or some other collection that preserves the order in which the exceptions got
       * added.
       *
       * @throws NullPointerException if {@code exceptions} is null
       * @throws IllegalArgumentException if {@code exceptions} is empty
       */
      static RuntimeException create(Collection<? extends Throwable> exceptions) {
        if (exceptions.size() == 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            this.baseFilename = baseFilename;
            this.fileSuffix = fileSuffix;
    
            initializeCleanupMonitoring();
        }
    
        private void initializeCleanupMonitoring() {
            callerInfo = new NullPointerException().getStackTrace()[2];
    
            Runnable warning = this::maybeWarnAboutCleanUp;
    
            cleanupWarning = new Thread(warning);
    
            Runtime.getRuntime().addShutdownHook(cleanupWarning);
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceFactoryTest.java

          }
    
          @Override
          public void onFailure(@NotNull EventSource eventSource, @Nullable Throwable t, @Nullable Response response) {
            future.completeExceptionally(t == null ? new NullPointerException() : t);
          }
        });
        future.get();
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top