@Test public void should_throw_an_illegal_state_exception_as_the_endLineCharacters_parameter_is_not_valid() throws Exception { try { check.setEndLineCharacters("abc"); GherkinCheckVerifier.issues(check, getTestFileWithProperEndLineCharacters("\r")).noMore(); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check gherkin:end-line-characters (End-line characters should be consistent): " + "endLineCharacters parameter is not valid.\nActual: 'abc'\nExpected: 'CR' or 'CRLF' or 'LF'"); } }
@VisibleForTesting void setEndLineCharacters(String endLineCharacters) { this.endLineCharacters = endLineCharacters; }
EndLineCharactersCheck extends DoubleDispatchVisitorCheck implements CharsetAwareVisitor { @VisibleForTesting void setEndLineCharacters(String endLineCharacters) { this.endLineCharacters = endLineCharacters; } }
EndLineCharactersCheck extends DoubleDispatchVisitorCheck implements CharsetAwareVisitor { @VisibleForTesting void setEndLineCharacters(String endLineCharacters) { this.endLineCharacters = endLineCharacters; }  }
EndLineCharactersCheck extends DoubleDispatchVisitorCheck implements CharsetAwareVisitor { @VisibleForTesting void setEndLineCharacters(String endLineCharacters) { this.endLineCharacters = endLineCharacters; }  @Override void visitGherkinDocument(GherkinDocumentTree tree); @Override void validateParameters(); @Override void setCharset(Charset charset); }
EndLineCharactersCheck extends DoubleDispatchVisitorCheck implements CharsetAwareVisitor { @VisibleForTesting void setEndLineCharacters(String endLineCharacters) { this.endLineCharacters = endLineCharacters; }  @Override void visitGherkinDocument(GherkinDocumentTree tree); @Override void validateParameters(); @Override void setCharset(Charset charset);  }