Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 522 for hatch (0.02 seconds)

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

        @Test
        public void test_multipleCatches() {
            // Test with multiple catch blocks
            boolean caughtSpecific = false;
            boolean caughtRuntime = false;
    
            try {
                throw new DictionaryExpiredException();
            } catch (DictionaryExpiredException e) {
                caughtSpecific = true;
            } catch (RuntimeException e) {
                caughtRuntime = true;
            }
    
    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)
  2. src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java

            TestScriptEngine engine = new TestScriptEngine();
            try {
                scriptEngineFactory.add(null, engine);
                fail("Should throw IllegalArgumentException for null name");
            } catch (IllegalArgumentException e) {
                assertTrue(e.getMessage().contains("Both name and scriptEngine parameters are required"));
                assertTrue(e.getMessage().contains("name: null"));
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

                    fos = null; // Successfully wrapped, no need to close explicitly
                } catch (final Exception e) {
                    if (fos != null) {
                        try {
                            fos.close();
                        } catch (final IOException ioe) {
                            // Ignore close exception
                        }
                    }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/helper/AccessTokenHelperTest.java

            MockletHttpServletRequest req = getMockRequest();
            req.addHeader("Authorization", token);
            try {
                accessTokenHelper.getAccessTokenFromRequest(req);
                fail();
            } catch (InvalidAccessTokenException e) {
                // ok
            }
        }
    
        @Test
        public void test_getAccessTokenFromRequest_bad2() {
            final String token = "Bearer";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

            // Test that initializeProbes doesn't throw exception
            try {
                ThumbnailGenerator.initializeProbes();
                // If no exception thrown, test passes
                assertTrue(true);
            } catch (Exception e) {
                fail("initializeProbes should not throw exception: " + e.getMessage());
            }
        }
    
        @Test
        public void test_main_withHelp() {
            // Test main method with help option
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java

                return (DfFinalTimeZoneProvider) field.get(null);
            } catch (NoSuchFieldException e) {
                // Field might not exist in this version, return null
                return null;
            } catch (IllegalAccessException e) {
                // Cannot access field due to security restrictions
                return null;
            } catch (Exception e) {
                // Other errors, return null instead of throwing
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/exception/ScriptEngineExceptionTest.java

            // Test catching as parent class
            String message = "Parent class catch test";
    
            try {
                throw new ScriptEngineException(message);
            } catch (FessSystemException e) {
                assertEquals(message, e.getMessage());
                assertTrue(e instanceof ScriptEngineException);
            } catch (Exception e) {
                fail("Should have caught as FessSystemException");
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                    logger.info("Backup file uploaded successfully and queued for import: fileName={}, tempFile={}", fileName,
                            tempFile.getAbsolutePath());
                }
            } catch (final IOException e) {
                logger.warn("Failed to upload backup file: fileName={}, error={}", fileName, e.getMessage(), e);
                if (tempFile.exists() && !tempFile.delete()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Nov 24 02:07:40 GMT 2025
    - 32.1K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

                    tikaExtractor.setSpaceChars(getSpaceChars());
                }
            } catch (final ComponentNotFoundException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("tikaExtractor is not found: {}", e.getMessage().replace('\n', ' '));
                }
            } catch (final Exception e) {
                logger.warn("Failed to initialize TikaExtractor.", e);
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:27:04 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/ViewHelperTest.java

                assertNotNull(result);
            } catch (Exception e) {
                assertTrue(true);
            }
        }
    
        @Test
        public void test_createHighlightInfo() {
            ViewHelper viewHelper = new ViewHelper();
            viewHelper.init();
    
            try {
                assertNotNull(viewHelper.createHighlightInfo());
            } catch (Exception e) {
                assertTrue(true);
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 27.8K bytes
    - Click Count (0)
Back to Top