Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 536 for match1 (0.03 seconds)

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

                assertNotNull(result);
                assertTrue(result.contains("string"));
                assertTrue(result.contains("test"));
            } catch (IORuntimeException e) {
                // Expected in test environment due to OpenSearch XContent setup
                assertTrue(e.getCause() instanceof IOException);
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsCreator.java

        private static final Logger logger = LogManager.getLogger(ProtwordsCreator.class);
    
        /**
         * Constructor for ProtwordsCreator.
         * Initializes the creator with a pattern to match protwords files.
         */
        public ProtwordsCreator() {
            super("protwords.*\\.txt");
        }
    
        /**
         * Registers this creator with the dictionary manager.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 2K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

            // Try to execute with non-existent script type
            try {
                scriptExecutor.execute("nonexistent", "some script");
                fail("Expected ScriptEngineException");
            } catch (ScriptEngineException e) {
                assertTrue(e.getMessage().contains("nonexistent"));
            }
        }
    
        @Test
        public void test_execute_withNullScriptType() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java

            try {
                provider.provide(null);
                fail("Should throw exception for null classification name");
            } catch (ProvidedClassificationNotFoundException e) {
                // expected
                assertTrue(e.getMessage().contains("Not found the classification: null"));
            } catch (NullPointerException e) {
                // Also acceptable if null is not handled explicitly
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java

        }
    
        @Test
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String message = "Throw and catch test";
    
            try {
                throw new SearchEngineClientException(message);
            } catch (SearchEngineClientException e) {
                assertEquals(message, e.getMessage());
                assertNull(e.getCause());
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

                    haveValue = true;
                } catch (final Exception e) {}
            }
            if (!haveValue) {
                try {
                    value = item.getString(Charset.forName("ISO-8859-1"));
                } catch (final java.io.UnsupportedEncodingException uee) {
                    try {
                        value = item.getString();
                    } catch (final IOException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:48:41 GMT 2026
    - 18.9K bytes
    - Click Count (1)
  7. src/test/java/org/codelibs/fess/exception/LdapOperationExceptionTest.java

            String expectedMessage = "LDAP authentication failed";
            try {
                throw new LdapOperationException(expectedMessage);
            } catch (LdapOperationException e) {
                assertEquals(expectedMessage, e.getMessage());
                assertNull(e.getCause());
            } catch (Exception e) {
                fail("Should have caught LdapOperationException");
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/JobHelperTest.java

            try {
                jobHelper.register((ScheduledJob) null);
                fail("Should throw ScheduledJobException");
            } catch (ScheduledJobException e) {
                assertEquals("scheduledJob parameter is null. Cannot register a null job.", e.getMessage());
            } catch (Exception e) {
                // Expected due to missing dependencies in test environment
                assertTrue(true);
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java

                        entity.start(Map.of(Constants.JOB_LOG_ID, jobLogId[0]));
                    } else {
                        entity.start();
                    }
                } catch (final Exception e) {
                    throwValidationErrorApi(messages -> {
                        messages.addErrorsFailedToStartJob(GLOBAL, entity.getName());
                    });
                }
            }).orElse(() -> {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                    if (!task.isExecuted()) {
                        task.run();
                    }
                }
            } catch (final InterruptedException e) {
                logger.warn("Interrupted generating thumbnail: id={}, command={}", thumbnailId, cmdList, e);
                Thread.currentThread().interrupt();
            } catch (final Exception e) {
                logger.warn("Failed to generate thumbnail: id={}, command={}", thumbnailId, cmdList, e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 01 12:47:47 GMT 2026
    - 16.6K bytes
    - Click Count (0)
Back to Top