@Test public void should_throw_an_illegal_state_exception_as_the_language_parameter_is_not_valid() { try { SameFeatureLanguageCheck check = new SameFeatureLanguageCheck(); check.setLanguage("abc"); GherkinCheckVerifier.issues(check, CheckTestUtils.getTestFile("same-feature-language/default.feature")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check gherkin:same-feature-language (Features should be written in the same language): " + "language parameter \"abc\" is not valid. Allowed values are: af, am, ar, ast, az, bg, bm, bs, ca, cs, " + "cy-GB, da, de, el, em, en, en-Scouse, en-au, en-lol, en-old, en-pirate, eo, es, et, fa, fi, fr, ga, gj, gl, " + "he, hi, hr, ht, hu, id, is, it, ja, jv, ka, kn, ko, lt, lu, lv, mn, nl, no, pa, pl, pt, ro, ru, sk, sl, " + "sr-Cyrl, sr-Latn, sv, ta, th, tl, tlh, tr, tt, uk, ur, uz, vi, zh-CN, zh-TW"); } }
@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();  }