Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for NPE (0.01 sec)

  1. src/test/java/org/codelibs/fess/dict/DictionaryExceptionTest.java

        }
    
        public void test_toString() {
            // Test toString method
            String message = "Dictionary parse error";
            Exception cause = new NullPointerException("NPE occurred");
            DictionaryException exception = new DictionaryException(message, cause);
    
            String toStringResult = exception.toString();
            assertNotNull(toStringResult);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/ScheduledJobExceptionTest.java

            // Test throwing and catching the exception with cause
            String expectedMessage = "Job execution failed with error";
            Throwable expectedCause = new NullPointerException("NPE occurred");
            boolean exceptionCaught = false;
    
            try {
                throw new ScheduledJobException(expectedMessage, expectedCause);
            } catch (ScheduledJobException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/StorageExceptionTest.java

            assertTrue(exception1.getCause() instanceof java.io.IOException);
    
            StorageException exception2 = new StorageException("NPE", new NullPointerException("Null reference"));
            assertTrue(exception2.getCause() instanceof NullPointerException);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

          future.get();
          fail("Expected ExecutionException");
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().isSameInstanceAs(expectedCause);
        }
      }
    
      /** invokeAny(null) throws NPE */
      public void testInvokeAnyImpl_nullTasks() throws Exception {
        ListeningExecutorService e = newDirectExecutorService();
        try {
          invokeAnyImpl(e, null, false, 0, NANOSECONDS);
          fail();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/JobProcessingExceptionTest.java

        }
    
        public void test_getMessage_withComplexCause() {
            // Test getMessage behavior with complex cause structure
            final Exception innerCause = new NullPointerException("NPE occurred");
            final Exception outerCause = new IllegalStateException("State error", innerCause);
            final JobProcessingException exception = new JobProcessingException(outerCause);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/score/LtrQueryRescorerTest.java

            assertEquals(testWindowSize, queryRescorerBuilder.windowSize().intValue());
        }
    
        public void test_evaluate_withNullParams() {
            // Test with null parameters - should throw NPE due to OpenSearch StoredLtrQueryBuilder requirements
            final String testModelName = "test_model";
            final int testWindowSize = 75;
    
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java

        }
    
        public void test_stackTrace() {
            // Test that stack trace is properly preserved
            String message = "GSA error with stack trace";
            Throwable cause = new NullPointerException("NPE occurred");
            GsaConfigException exception = new GsaConfigException(message, cause);
    
            assertNotNull(exception.getStackTrace());
            assertTrue(exception.getStackTrace().length > 0);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java

            // Test with different types of causes
            DataStoreException withIOException = new DataStoreException("IO Error", new java.io.IOException("File not found"));
            DataStoreException withNPE = new DataStoreException("NPE Error", new NullPointerException("Null value"));
            DataStoreException withCustom = new DataStoreException("Custom Error", new FessSystemException("System error"));
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java

                fail("Expected NullPointerException");
            } catch (NullPointerException e) {
                // Expected
            }
    
            // equals with null input may return false instead of throwing NPE
            assertFalse(item3.equals(item1));
        }
    
        public void test_toString() {
            // Test toString method
            ProtwordsItem item = new ProtwordsItem(123, "testword");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

         * package-private, I feel OK with just not testing them for NPE.
         *
         * Note that testing casValue is particularly dangerous because it uses Unsafe under some
         * versions of Java, and apparently Unsafe can cause SIGSEGV instead of NPE—almost as if it's
         * not safe.
         */
        concat(
                stream(AbstractFuture.class.getDeclaredMethods()),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top