@Test public void should_throw_an_illegal_state_exception_as_the_format_parameter_is_not_valid() { try { check.setFormat("("); CssCheckVerifier.issuesOnLessFile(check, CheckTestUtils.getLessTestFile("lessVariableNamingConvention.less")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check less:less-variable-naming-convention (Less variables should follow a naming convention): " + "format parameter \"(\" is not a valid regular expression."); } }
@VisibleForTesting void setFormat(String format) { this.format = format; }
LessVariableNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; } }
LessVariableNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  }
LessVariableNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitLessVariableDeclaration(LessVariableDeclarationTree tree); @Override void validateParameters(); }
LessVariableNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitLessVariableDeclaration(LessVariableDeclarationTree tree); @Override void validateParameters();  }