@Test public void should_throw_an_illegal_state_exception_as_the_format_parameter_regular_expression_is_not_valid() { try { check.setFormat("("); GherkinCheckVerifier.issues(check, CheckTestUtils.getTestFile("tag-name/tag-name-ok.feature")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check gherkin:tag-naming-convention (Tags should comply with a naming convention): " + "format parameter \"(\" is not a valid regular expression."); } }
@VisibleForTesting void setFormat(String format) { this.format = format; }
TagNameCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; } }
TagNameCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  }
TagNameCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitTag(TagTree tree); @Override void validateParameters(); }
TagNameCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitTag(TagTree tree); @Override void validateParameters();  }