Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 174 for getCause (0.04 sec)

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

            // Verify the exception chain
            assertNotNull(runtimeException);
            assertEquals(servletException, runtimeException.getCause());
            assertEquals(rootCause, servletException.getCause());
    
            // Verify messages in the chain
            assertTrue(runtimeException.getMessage().contains(ServletException.class.getName()));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            assertEquals("dbConnection", topException.getComponentName());
            assertEquals(middleCause, topException.getCause());
            assertEquals(rootCause, topException.getCause().getCause());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String componentName = "cacheManager";
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlExceptionTest.java

            assertEquals("Final message", exception.getMessage());
            assertSame(intermediateCause, exception.getCause());
            assertSame(rootCause, exception.getCause().getCause());
        }
    
        @Test
        public void testToString() {
            String message = "Test error message";
            CurlException exception = new CurlException(message);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

            assertEquals(400, exception.getStatusCode());
            assertEquals("Runtime error", exception.getMessage());
            assertEquals(middleCause, exception.getCause());
            assertEquals(innerCause, exception.getCause().getCause());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            int expectedStatusCode = 403;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            SMBProtocolDecodingException ex = new SMBProtocolDecodingException();
    
            // Assert state
            assertNull(ex.getMessage(), "Default constructor should have null message");
            assertNull(ex.getCause(), "Default constructor should have null cause");
            assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype");
    
            // Assert throwing/catching behavior with assertThrows
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java

            assertEquals(url, exception.getUrl());
            assertEquals(message, exception.getMessage());
            assertEquals(outerCause, exception.getCause());
            assertEquals(middleCause, exception.getCause().getCause());
            assertEquals(innerCause, exception.getCause().getCause().getCause());
            assertFalse(exception.aborted());
        }
    
        public void test_constructor_withSpecialCharactersInUrl() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/JobNotFoundExceptionTest.java

            assertNull(exception.getCause());
        }
    
        public void test_constructorWithString_null() {
            // Test with null message
            JobNotFoundException exception = new JobNotFoundException((String) null);
    
            assertNotNull(exception);
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_constructorWithString_empty() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9K bytes
    - Viewed (0)
  8. 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)
  9. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

         */
        @Test
        void testDefaultConstructor() {
            PACDecodingException e = new PACDecodingException();
            // Expect null message and null cause
            assertNull(e.getMessage());
            assertNull(e.getCause());
        }
    
        /**
         * Test the constructor with a message.
         */
        @Test
        void testMessageConstructor() {
            String errorMessage = "This is a test error message.";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/UnsupportedSearchExceptionTest.java

            assertNull(exception.getCause());
        }
    
        public void test_constructor_withEmptyMessage() {
            // Test with empty message
            String message = "";
            UnsupportedSearchException exception = new UnsupportedSearchException(message);
    
            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top