Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for gracefully (0.05 sec)

  1. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

                fail("setObject should handle missing request gracefully: " + e.getMessage());
            }
        }
    
        public void test_setObject_withNullName() {
            // Test setObject with null name
            try {
                WebApiUtil.setObject(null, "testValue");
            } catch (Exception e) {
                fail("setObject should handle null name gracefully: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

                    }
                }
            };
    
            FwAssistantDirector assistantDirector = createMockAssistantDirector();
    
            // Should handle ClassNotFoundException gracefully
            customHook.hook(assistantDirector);
    
            // Verify no exception is thrown to the caller
            assertTrue(true);
        }
    
        // Test shutdownCommonsHttpClient private method with reflection
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

            Map<String, Object> docMap = new HashMap<>();
    
            // Note: isTarget requires FessConfig which needs container
            // We can only verify the method handles missing container gracefully
            try {
                generator.isTarget(docMap);
            } catch (IllegalStateException e) {
                // Expected when container is not initialized
                assertTrue(e.getMessage().contains("Not initialized"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            // when proper conditions are not met.
    
            Map<String, Object> docMap = new HashMap<>();
    
            // This will return false because getFessConfig() will fail
            // We verify the method handles the case gracefully
            try {
                emptyGenerator.isTarget(docMap);
            } catch (IllegalStateException e) {
                // Expected when container is not initialized
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/SambaHelperTest.java

                }
    
                @Override
                public <T> T unwrap(Class<T> type) {
                    return null;
                }
            };
    
            // Should handle exception gracefully and still return result
            assertEquals("1TestUser", sambaHelper.getAccountId(exceptionSID));
        }
    
        // Helper methods
    
        private SID createMockSID(final int type, final String accountName) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

                fail("writeThreadDump should handle invalid paths gracefully: " + e.getMessage());
            }
        }
    
        public void test_writeThreadDump_withNullPath() {
            try {
                ThreadDumpUtil.writeThreadDump(null);
                // Should not throw exception but log warning
            } catch (Exception e) {
                fail("writeThreadDump should handle null path gracefully: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/WebSocket.kt

     * chooses to short-circuit the graceful shutdown process:
     *
     *  * **Canceled:** the web socket connection failed. Messages that were successfully enqueued by
     *    either peer may not have been transmitted to the other.
     *
     * Note that the state progression is independent for each peer. Arriving at a gracefully-closed
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/CurlHelperTest.java

                }
    
                setupMockConfig("localhost:9200", "", "", invalidCertFile.getAbsolutePath());
    
                curlHelper.init();
    
                // Should handle invalid certificate gracefully
                SSLSocketFactory sslSocketFactory = getSSLSocketFactory(curlHelper);
                assertNull(sslSocketFactory);
    
            } catch (IOException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java

            ComponentUtil.setFessConfig(fessConfig);
    
            // Create new instance after registering the updated config
            purgeDocJob = new PurgeDocJob();
    
            // Execute the job - should handle empty field name gracefully
            try {
                String result = purgeDocJob.execute();
                // The job should handle the exception internally but since QueryBuilders.rangeQuery
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/KeyMatchHelperTest.java

                    // Expected due to missing dependencies in test environment
                    assertTrue(true);
                    return;
                }
                // Should handle null keywords gracefully
                assertNotNull(functionBuilders);
            } catch (Exception e) {
                // May throw exception due to null handling
                assertNotNull(e);
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top