@Test public void should_throw_an_illegal_state_exception_as_the_functionsToExclude_parameter_is_not_valid() { try { ExperimentalNotLessFunctionCheck check = new ExperimentalNotLessFunctionCheck(); check.setFunctionsToExclude("("); CssCheckVerifier.issuesOnLessFile(check, CheckTestUtils.getLessTestFile("experimentalFunctionUsage.less")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check less:experimental-not-less-function-usage (Experimental functions should not be used): " + "functionsToExclude parameter \"(\" is not a valid regular expression."); } }
@VisibleForTesting void setFunctionsToExclude(String functionsToExclude) { this.functionsToExclude = functionsToExclude; }
ExperimentalNotLessFunctionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFunctionsToExclude(String functionsToExclude) { this.functionsToExclude = functionsToExclude; } }
ExperimentalNotLessFunctionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFunctionsToExclude(String functionsToExclude) { this.functionsToExclude = functionsToExclude; }  }
ExperimentalNotLessFunctionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFunctionsToExclude(String functionsToExclude) { this.functionsToExclude = functionsToExclude; }  @Override void visitFunction(FunctionTree tree); @Override void validateParameters(); }
ExperimentalNotLessFunctionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFunctionsToExclude(String functionsToExclude) { this.functionsToExclude = functionsToExclude; }  @Override void visitFunction(FunctionTree tree); @Override void validateParameters();  }