Assert.assertEquals(GermanSpellerRule.RULE_ID, matches2.get(0).getRule().getId());
}
public void testIgnoreSuggestionsWithDynamicHunspellRule() throws IOException {
final JLanguageTool langTool = new JLanguageTool(new GermanyGerman());
final SpellingCheckRule rule = new HunspellNoSuggestionRule(TestTools.getEnglishMessages(), new GermanyGerman());
langTool.addRule(rule);
langTool.disableRule(GermanSpellerRule.RULE_ID);
final List<RuleMatch> matches = langTool.check("Das ist ein Tibbfehla.");
assertEquals(1, matches.size());
assertEquals(HunspellNoSuggestionRule.RULE_ID, matches.get(0).getRule().getId());