@Test public void cr_should_find_lf_and_raise_issues() throws Exception { EndLineCharactersCheck check = new EndLineCharactersCheck(); check.setEndLineCharacters("CR"); JavaPropertiesCheckVerifier.issues(check, getTestFileWithProperEndLineCharacters("\n")) .next().withMessage("Set all end-line characters to 'CR' in this file.") .noMore(); }
@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 visitProperties(PropertiesTree tree); @Override void validateParameters(); @Override void setCharset(Charset charset); }
EndLineCharactersCheck extends DoubleDispatchVisitorCheck implements CharsetAwareVisitor { @VisibleForTesting void setEndLineCharacters(String endLineCharacters) { this.endLineCharacters = endLineCharacters; }  @Override void visitProperties(PropertiesTree tree); @Override void validateParameters(); @Override void setCharset(Charset charset);  }