@Test public void should_throw_an_illegal_state_exception_as_the_format_parameter_is_not_valid() { try { check.setFormat("("); CssCheckVerifier.issuesOnScssFile(check, CheckTestUtils.getScssTestFile("custom-function-naming-convention/customFunctionNamingConvention.scss")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check scss:custom-function-naming-convention (Custom functions should follow a naming convention): " + "format parameter \"(\" is not a valid regular expression."); } }
@VisibleForTesting void setFormat(String format) { this.format = format; }
CustomFunctionNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; } }
CustomFunctionNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  }
CustomFunctionNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitScssFunction(ScssFunctionTree tree); @Override void validateParameters(); }
CustomFunctionNamingConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitScssFunction(ScssFunctionTree tree); @Override void validateParameters();  }