@Test public void should_throw_an_illegal_state_exception_as_the_exclusions_parameter_is_not_valid() { try { FontFamilyNotEndingWithGenericFontFamilyCheck check = new FontFamilyNotEndingWithGenericFontFamilyCheck(); check.setExclusions("("); CssCheckVerifier.issuesOnCssFile(check, getTestFile("fontFamilyNotEndingWithGenericFontFamily.css")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check css:font-family-not-ending-with-generic-font-family (font-family properties should end with a generic font family): " + "exclusions parameter \"(\" is not a valid regular expression."); } }
@VisibleForTesting void setExclusions(String exclusions) { this.exclusions = exclusions; }
FontFamilyNotEndingWithGenericFontFamilyCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setExclusions(String exclusions) { this.exclusions = exclusions; } }
FontFamilyNotEndingWithGenericFontFamilyCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setExclusions(String exclusions) { this.exclusions = exclusions; }  }
FontFamilyNotEndingWithGenericFontFamilyCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setExclusions(String exclusions) { this.exclusions = exclusions; }  @Override void visitPropertyDeclaration(PropertyDeclarationTree tree); @Override void validateParameters(); }
FontFamilyNotEndingWithGenericFontFamilyCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setExclusions(String exclusions) { this.exclusions = exclusions; }  @Override void visitPropertyDeclaration(PropertyDeclarationTree tree); @Override void validateParameters();  }