Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 356 for NullPointerException (0.09 sec)

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

        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPutIfAbsent_nullKeyUnsupported() {
        assertThrows(NullPointerException.class, () -> getMap().putIfAbsent(null, v3()));
        expectUnchanged();
        expectNullKeyMissingWhenNullKeysUnsupported(
            "Should not contain null key after unsupported putIfAbsent(null, value)");
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

      private enum ExceptionTypePolicy {
    
        /**
         * Exceptions should be {@link NullPointerException} or {@link UnsupportedOperationException}.
         */
        NPE_OR_UOE() {
          @Override
          public boolean isExpectedType(Throwable cause) {
            return cause instanceof NullPointerException
                || cause instanceof UnsupportedOperationException;
          }
        },
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

                assertEquals(1, result.intValue());
            } catch (Exception e) {
                // Expected behavior when components are not fully initialized
                assertTrue(e.getCause() instanceof NullPointerException || e.getCause() instanceof ContainerNotAvailableException);
            } finally {
                tempPropFile.delete();
            }
        }
    
        public void test_process_withoutPropertiesPath() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

            // Note: WebApiException constructor calls e.getMessage() on null exception, causing NullPointerException
            try {
                WebApiUtil.setError(500, (Exception) null);
                fail("setError should throw NullPointerException when passed null exception");
            } catch (NullPointerException e) {
                // Expected - WebApiException constructor cannot handle null exception
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/LanguageHelperTest.java

            doc.put("title", "xyz");
            doc.put("content", "xyz");
    
            // Without a real detector, this will throw NullPointerException
            try {
                languageHelper.updateDocument(doc);
                fail("Should throw NullPointerException without detector");
            } catch (NullPointerException e) {
                // Expected since we don't have a detector
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

        }
    
        public void test_execute_withNullPointerException() {
            // Setup mock SearchLogHelper that throws NullPointerException
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    throw new NullPointerException("Null value encountered");
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            User user = createTestUser("testuser");
            try {
                authenticationManager.insert(user);
                fail("Should throw NullPointerException when processing null chain");
            } catch (NullPointerException e) {
                // Expected behavior when null chain is processed
                assertTrue(true);
            }
        }
    
        // Test chains order preservation
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        EqualsTester tester = new EqualsTester();
        assertThrows(NullPointerException.class, () -> tester.addEqualityGroup((Object[]) null));
      }
    
      public void testNullObjectInEqualityGroup() {
        EqualsTester tester = new EqualsTester();
        NullPointerException e =
            assertThrows(NullPointerException.class, () -> tester.addEqualityGroup(1, null, 3));
        assertErrorMessage(e, "at index 1");
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.java

      public void testFind_nullNotContainedAndUnsupported() {
        try {
          assertEquals(getMethodName() + "(nullNotPresent) should return -1 or throw", -1, find(null));
        } catch (NullPointerException tolerated) {
        }
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
      public void testFind_nonNullWhenNullContained() {
        initCollectionWithNullElement();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. android/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)
Back to top