Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for DictionaryException (0.11 seconds)

  1. 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)
  2. 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