Search in sources :

Example 1 with IDictionaries

use of org.omegat.gui.dictionaries.IDictionaries in project omegat by omegat-org.

the class DictionariesManagerTest method setUp.

@Before
public final void setUp() throws Exception {
    manager = new DictionariesManager(new IDictionaries() {

        @Override
        public void refresh() {
        }

        @Override
        public void addDictionaryFactory(IDictionaryFactory factory) {
        }

        @Override
        public void removeDictionaryFactory(IDictionaryFactory factory) {
        }
    }) {

        @Override
        protected boolean doFuzzyMatching() {
            return true;
        }
    };
    manager.setIndexLanguage(new Language(Locale.ENGLISH));
    manager.setTokenizer(new DefaultTokenizer());
    PrintWriter fw = new PrintWriter(IGNORE_FILE, "UTF-8");
    fw.println(IGNORE_WORD);
    fw.close();
    assertFalse(fw.checkError());
}
Also used : Language(org.omegat.util.Language) DefaultTokenizer(org.omegat.tokenizer.DefaultTokenizer) IDictionaries(org.omegat.gui.dictionaries.IDictionaries) PrintWriter(java.io.PrintWriter) Before(org.junit.Before)

Aggregations

PrintWriter (java.io.PrintWriter)1 Before (org.junit.Before)1 IDictionaries (org.omegat.gui.dictionaries.IDictionaries)1 DefaultTokenizer (org.omegat.tokenizer.DefaultTokenizer)1 Language (org.omegat.util.Language)1