Package org.languagetool.language

Examples of org.languagetool.language.Belarusian


public class BelarusianConcurrencyTest extends AbstractLanguageConcurrencyTest {

  @Override
  protected Language createLanguage() {
    return new Belarusian();
  }
View Full Code Here


      assertEquals(1, enabledRuleIds.size());

      //now change language

      conf = new Configuration(tempFile.getParentFile(), tempFile.getName(),
              new Belarusian());
      disabledRuleIds = conf.getDisabledRuleIds();
      assertTrue(disabledRuleIds.isEmpty());
      enabledRuleIds = conf.getEnabledRuleIds();
      assertTrue(enabledRuleIds.isEmpty());

      conf.setEnabledRuleIds(new HashSet<>(Arrays.asList("enabledBYRule")));
      conf.saveConfiguration(new Belarusian());

      //and back...
      conf = new Configuration(tempFile.getParentFile(), tempFile.getName(),
              new AmericanEnglish());
      disabledRuleIds = conf.getDisabledRuleIds();
View Full Code Here

TOP

Related Classes of org.languagetool.language.Belarusian

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.