@Test public void should_not_be_written_in_the_custom_language_and_raise_an_issue() { SameFeatureLanguageCheck check = new SameFeatureLanguageCheck(); check.setLanguage("fr"); GherkinCheckVerifier.issues( check, CheckTestUtils.getTestFile("same-feature-language/not-fr.feature")) .next().withMessage("Add a 'fr' language definition and translate the content of the file.") .noMore(); }
@VisibleForTesting void setLanguage(String language) { this.language = language; }
SameFeatureLanguageCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setLanguage(String language) { this.language = language; } }
SameFeatureLanguageCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setLanguage(String language) { this.language = language; }  }
SameFeatureLanguageCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setLanguage(String language) { this.language = language; }  @Override void visitGherkinDocument(GherkinDocumentTree tree); @Override void validateParameters(); }
SameFeatureLanguageCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setLanguage(String language) { this.language = language; }  @Override void visitGherkinDocument(GherkinDocumentTree tree); @Override void validateParameters();  }