Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for RuntimeException (0.1 sec)

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

            // Test that it can be caught as RuntimeException
            try {
                throw new DictionaryExpiredException();
            } catch (RuntimeException e) {
                assertNotNull(e);
                assertTrue(e instanceof DictionaryExpiredException);
            } catch (Exception e) {
                fail("Should have caught as RuntimeException");
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHookTest.java

            // Test with null message
            RuntimeException nullMessageEx = new RuntimeException();
            assertNull(nullMessageEx.getMessage());
    
            // Test with empty message
            RuntimeException emptyMessageEx = new RuntimeException("");
            assertEquals("", emptyMessageEx.getMessage());
        }
    
        // Test JSON response creation helper
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
    
            // Test that suppression is enabled
            RuntimeException suppressed = new RuntimeException("Suppressed exception");
            exception.addSuppressed(suppressed);
            assertEquals(1, exception.getSuppressed().length);
            assertEquals(suppressed, exception.getSuppressed()[0]);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java

            ServletRuntimeException runtimeException = new ServletRuntimeException(servletException);
    
            // Verify it's an instance of RuntimeException
            assertTrue(runtimeException instanceof RuntimeException);
            assertTrue(runtimeException instanceof Exception);
            assertTrue(runtimeException instanceof Throwable);
        }
    
        public void test_stackTrace() {
            // Create a ServletException with a specific message
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

                updateCalls.add(user);
                if (updateThrowsException) {
                    throw new RuntimeException("Update failed");
                }
            }
    
            @Override
            public void delete(User user) {
                deleteCalls.add(user);
                if (deleteThrowsException) {
                    throw new RuntimeException("Delete failed");
                }
            }
    
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java

            assertTrue(exception instanceof RuntimeException);
        }
    
        public void test_stackTracePresence() {
            // Setup
            final String message = "Test stack trace";
            final VaMessenger<FessMessages> messageCode = messages -> messages.addErrorsSsoLoginError(UserMessages.GLOBAL_PROPERTY_KEY);
            final Exception cause = new RuntimeException("Root cause");
    
            // Execute
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/QueryParseExceptionTest.java

            // This is expected behavior for exceptions with null cause
        }
    
        public void test_nestedCause() {
            // Test with nested exceptions
            RuntimeException rootCause = new RuntimeException("Root cause");
            ParseException parseException = new ParseException("Parse error");
            parseException.initCause(rootCause);
    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. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            ContainerNotAvailableException exception1 = new ContainerNotAvailableException(componentName1, new RuntimeException());
            assertEquals(componentName1, exception1.getComponentName());
    
            ContainerNotAvailableException exception2 = new ContainerNotAvailableException(new RuntimeException());
            assertEquals("container", exception2.getComponentName());
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java

            // Test with URL, message, and exception (abort defaults to false)
            String url = "http://example.com/test";
            String message = "Test error message";
            Exception cause = new RuntimeException("Root cause");
    
            DataStoreCrawlingException exception = new DataStoreCrawlingException(url, message, cause);
    
            assertEquals(url, exception.getUrl());
            assertEquals(message, exception.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            final String errorMessage = "Test exception occurred";
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    throw new RuntimeException(errorMessage);
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
            // Execute the job
            String result = aggregateLogJob.execute();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
Back to top