@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("file-name/file-name-ok.feature")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check gherkin:S1578 (File names should comply with a naming convention): " + "format parameter \"(\" is not a valid regular expression."); } }
@VisibleForTesting void setFormat(String format) { this.format = format; }
FileNameCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; } }
FileNameCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  }
FileNameCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitGherkinDocument(GherkinDocumentTree tree); @Override void validateParameters(); }
FileNameCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setFormat(String format) { this.format = format; }  @Override void visitGherkinDocument(GherkinDocumentTree tree); @Override void validateParameters();  }