Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 2,828 for exception (0.06 seconds)

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

            // Verify backward compatibility - Exception types still work
            String url = "http://example.com/test";
            String message = "Crawling error";
    
            // Test with IOException
            java.io.IOException ioException = new java.io.IOException("Network error");
            DataStoreCrawlingException exception1 = new DataStoreCrawlingException(url, message, ioException);
            assertTrue(exception1.getCause() instanceof java.io.IOException);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            String componentName = "testComponent";
            ContainerNotAvailableException exception = new ContainerNotAvailableException(componentName);
    
            assertEquals(componentName + " is not available.", exception.getMessage());
            assertNull(exception.getCause());
            assertEquals(componentName, exception.getComponentName());
        }
    
        @Test
        public void test_constructor_withComponentNameAndCause() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java

            FessUserNotFoundException exception1 = new FessUserNotFoundException("user1");
            FessUserNotFoundException exception2 = new FessUserNotFoundException("user2");
    
            assertNotSame(exception1, exception2);
            assertFalse(exception1.getMessage().equals(exception2.getMessage()));
            assertEquals("User is not found: user1", exception1.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java

            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
    
            // Should be runtime exception (unchecked), not an Error
            // CommandExecutionException extends RuntimeException, not Error
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            String message = "Session expired";
            InvalidAccessTokenException exception = new InvalidAccessTokenException(type, message);
    
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_throwAndCatch() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

            // Test that different instances are not equal
            DictionaryExpiredException exception1 = new DictionaryExpiredException();
            DictionaryExpiredException exception2 = new DictionaryExpiredException();
    
            assertNotSame(exception1, exception2);
            assertFalse(exception1.equals(exception2));
            assertTrue(exception1.equals(exception1));
        }
    
        @Test
        public void test_hashCode() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

            assertTrue(exception.getMessage().contains(cause.getClass().getName()));
            assertTrue(exception.getMessage().contains("Cause exception"));
        }
    
        @Test
        public void test_constructor_withNullMessage() {
            // Test constructor with null message
            FessSystemException exception = new FessSystemException((String) null);
    
            assertNull(exception.getMessage());
            assertNull(exception.getCause());
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java

            SearchQueryException exception1 = new SearchQueryException("Exception 1");
            SearchQueryException exception2 = new SearchQueryException("Exception 2", new Exception("Cause 2"));
            SearchQueryException exception3 = new SearchQueryException(new Exception("Cause 3"));
    
            assertNotSame(exception1, exception2);
            assertNotSame(exception2, exception3);
            assertNotSame(exception1, exception3);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java

            @DisplayName("Should handle deeply nested exceptions")
            void testToStringWithNestedExceptions() {
                Exception innermost = new IOException("Innermost exception");
                Exception middle = new RuntimeException("Middle exception", innermost);
                Exception rootCause = new IllegalStateException("Outer exception", middle);
                TransportException exception = new TransportException("Transport failed", rootCause);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            assertThat(toSqlDateJdbcEscape(null), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToSqlDate_EmptyString() throws Exception {
            assertThat(toSqlDateJdbcEscape(""), is(nullValue()));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToSqlDate_ShortStyle() throws Exception {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 9.4K bytes
    - Click Count (0)
Back to Top