Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for DictionaryException (0.22 seconds)

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

        }
    
        @Test
        public void test_instanceof_FessSystemException() {
            // Test that DictionaryException is instance of FessSystemException
            DictionaryException exception = new DictionaryException("Test");
    
            assertTrue(exception instanceof org.codelibs.fess.exception.FessSystemException);
            assertTrue(exception instanceof RuntimeException);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

                assertEquals("testWord", result.getInput());
            } catch (Exception e) {
                // If any exception occurs, it should be a DictionaryException
                assertTrue("Exception should be DictionaryException", e instanceof DictionaryException);
                assertTrue("Message should mention userDict file",
                        e.getMessage().contains("userDict") || e.getMessage().contains("Failed to write"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 21.2K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

                    throw new IOException("Test exception");
                }
            };
    
            try {
                stopwordsFile.reload(null, failingStream);
                fail("Should throw DictionaryException");
            } catch (DictionaryException e) {
                assertTrue(e.getMessage().contains("Failed to parse"));
            }
        }
    
        // Test update with InputStream
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            charMappingFile.update(updateItem1);
    
            // Second update should fail due to mismatch
            try {
                charMappingFile.update(updateItem2);
                fail("Should throw DictionaryException");
            } catch (DictionaryException e) {
                assertTrue(e.getMessage().contains("Mapping file was updated"));
            }
        }
    
        // Test reload with IOException
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
Back to Top