Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for test_exceptionChaining (0.12 sec)

  1. src/test/java/org/codelibs/fess/exception/PluginExceptionTest.java

            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_exceptionChaining() {
            // Test exception chaining
            Throwable rootCause = new IllegalArgumentException("Invalid argument");
            Throwable intermediateCause = new RuntimeException("Processing failed", rootCause);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java

                assertTrue(e instanceof FessUserNotFoundException);
            } catch (Exception e) {
                fail("Should have caught as FessSystemException");
            }
        }
    
        public void test_exceptionChaining() {
            // Test that the exception can be used in exception chaining
            String username = "testuser";
            FessUserNotFoundException originalException = new FessUserNotFoundException(username);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            ContainerNotAvailableException exception3 = new ContainerNotAvailableException("anotherComponent");
            assertNull(exception3.getComponentName());
        }
    
        public void test_exceptionChaining() {
            // Test exception chaining with multiple levels
            Exception rootCause = new Exception("Root cause");
            RuntimeException middleCause = new RuntimeException("Middle cause", rootCause);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

            assertNull(exception.getCause());
    
            // Stack trace should be empty
            assertEquals(0, exception.getStackTrace().length);
        }
    
        public void test_exceptionChaining() {
            // Test exception chaining with multiple levels
            Exception rootCause = new Exception("Root cause");
            RuntimeException middleCause = new RuntimeException("Middle cause", rootCause);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java

            SsoProcessException exception = new SsoProcessException(null, null);
    
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_exceptionChaining() {
            // Test exception chaining with multiple levels
            Exception rootCause = new Exception("Network timeout");
            Exception middleCause = new Exception("SSO provider unreachable", rootCause);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            assertTrue(stackTraceOutput.contains("IOException"));
            assertTrue(stackTraceOutput.contains("IO error"));
        }
    
        /**
         * Test exception chaining
         */
        public void test_exceptionChaining() {
            Exception level3 = new IllegalArgumentException("Level 3 - Root cause");
            Exception level2 = new IllegalStateException("Level 2", level3);
            Exception level1 = new IOException("Level 1", level2);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/CurlExceptionTest.java

                // Field doesn't exist
            }
            assertTrue("CurlException should have serialVersionUID field", hasSerialVersionUID);
        }
    
        @Test
        public void testExceptionChaining() {
            IOException rootCause = new IOException("Root cause");
            RuntimeException intermediateCause = new RuntimeException("Intermediate", rootCause);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbExceptionTest.java

                    break;
                }
            }
            assertTrue(foundTestMethod);
        }
    
        @Test
        @DisplayName("Should handle exception chaining")
        void testExceptionChaining() {
            // Given
            Exception rootCause = new RuntimeException("Root cause");
            SmbException intermediateCause = new SmbException("Intermediate", rootCause);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        @DisplayName("Should support exception chaining")
        void testExceptionChaining() {
            // Given
            Exception rootCause = new IllegalStateException("Root error");
            RuntimeCIFSException intermediateCause = new RuntimeCIFSException("Intermediate", rootCause);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top