@Test public void should_throw_an_illegal_state_exception_as_the_regular_expression_parameter_is_not_valid() { try { AllowedTagsCheck check = new AllowedTagsCheck(); check.setAllowedTags("("); GherkinCheckVerifier.issues(check, CheckTestUtils.getTestFile("allowed-tags/allowed-tags-custom.feature")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check gherkin:allowed-tags (Only tags matching a regular expression should be used): " + "allowedTags parameter \"(\" is not a valid regular expression."); } }
@VisibleForTesting void setAllowedTags(String allowedTags) { this.allowedTags = allowedTags; }
AllowedTagsCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setAllowedTags(String allowedTags) { this.allowedTags = allowedTags; } }
AllowedTagsCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setAllowedTags(String allowedTags) { this.allowedTags = allowedTags; }  }
AllowedTagsCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setAllowedTags(String allowedTags) { this.allowedTags = allowedTags; }  @Override void visitTag(TagTree tree); @Override void validateParameters(); }
AllowedTagsCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setAllowedTags(String allowedTags) { this.allowedTags = allowedTags; }  @Override void visitTag(TagTree tree); @Override void validateParameters();  }