Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 371 - 380 of 536 for match1 (0.04 seconds)

  1. src/test/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformerTest.java

        }
    
        @Test
        public void test_transform_nullResponseData() {
            try {
                transformer.transform(null);
                fail("Should throw CrawlingAccessException for null response");
            } catch (final CrawlingAccessException e) {
                assertTrue(e.getMessage().contains("No response body"));
            }
        }
    
        @Test
        public void test_transform_noResponseBody() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:54:47 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHook.java

                    cause.printStackTrace(pw);
                    pw.flush();
                    sb.append(" [ ").append(sw.toString()).append(" ]");
                } catch (final IOException ignore) {}
                return sb.toString();
            };
    
            if (Constants.TRUE.equalsIgnoreCase(ComponentUtil.getFessConfig().getApiJsonResponseExceptionIncluded())) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/api/BaseApiManager.java

            response.setContentType(buf.toString());
            writeHeaders(response);
            try (PrintWriter out = new PrintWriter(new OutputStreamWriter(response.getOutputStream(), enc))) {
                out.print(text);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Writes custom headers to the HTTP response.
         * @param response The HTTP servlet response.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProvider.java

            if (StringUtil.isNotBlank(name)) {
                try {
                    return requestManager.getParameter(name).filter(StringUtil::isNotBlank).map(LocaleUtils::toLocale);
                } catch (final Exception e) {
                    logger.debug("Failed to parse locale: name={}", name, e);
                }
            }
            return OptionalObject.empty();
        }
    
        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/job/AggregateLogJob.java

            final SearchLogHelper searchLogHelper = ComponentUtil.getSearchLogHelper();
    
            final StringBuilder resultBuf = new StringBuilder();
    
            try {
                searchLogHelper.storeSearchLog();
            } catch (final Exception e) {
                logger.error("Failed to store a search log.", e);
                resultBuf.append(e.getMessage()).append("\n");
            }
    
            return resultBuf.toString();
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

                    } catch (final SuggestSettingsException e) {
                        logger.warn("Failed to add suggest field: field={}", field, e);
                    }
                }));
                suggester.createIndexIfNothing();
            } catch (final Exception e) {
                logger.warn("Failed to initialize Suggester.", e);
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/LanguageHelperTest.java

                    languageHelper.getReindexScriptSource());
        }
    
        @Test
        public void test_init() {
            try {
                languageHelper.init();
                // Should not throw exception
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        @Test
        public void test_updateDocument_withExistingLang() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

                constructor.setAccessible(true);
                SystemUtil instance = constructor.newInstance();
                assertNotNull(instance);
    
            } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
                fail("Should be able to access private constructor: " + e.getMessage());
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  9. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
    import org.junit.jupiter.api.io.TempDir
    import java.io.File
    
    
    @EnabledIfEnvironmentVariable(named = "CI", matches = ".*", disabledReason = "Tests rely on setup conditional on CI in gradlebuild.ci-reporting plugin running first, these test should only run if CI env var is present (it's value doesn't matter)")
    class TestFilesCleanupServiceTest {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Feb 10 00:16:44 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

                        WebApiUtil.validate();
                    } catch (Exception e) {
                        errorCount.incrementAndGet();
                    } finally {
                        latch.countDown();
                    }
                }).start();
            }
    
            try {
                latch.await();
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.4K bytes
    - Click Count (0)
Back to Top