@Test public void should_throw_an_illegal_state_exception_as_the_format_parameter_is_not_valid() { try { check.setFormat("("); CssCheckVerifier.issuesOnCssFile(check, CheckTestUtils.getCommonTestFile("selectorNamingConvention/selectorNamingConvention.css")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check css:class-selector-naming-convention (Class selectors should follow a naming convention): " + "format parameter \"(\" is not a valid regular expression."); } }
@VisibleForTesting void setFormat(String format) { this.format = format; }
ClassSelectorNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; } }
ClassSelectorNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  }
ClassSelectorNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitClassSelector(ClassSelectorTree tree); @Override void validateParameters(); }
ClassSelectorNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitClassSelector(ClassSelectorTree tree); @Override void validateParameters();  }