@Test public void should_contain_comments_with_missing_whitespace_and_raise_some_issues_hash_token() { check.setStartingCommentToken("#"); JavaPropertiesCheckVerifier.issues(check, CheckTestUtils.getTestFile("comment-convention/commentsHashMissingWhitespace.properties")) .next().atLine(2).withMessage("Add a whitespace after the starting comment token.") .next().atLine(3).withMessage("Add a whitespace after the starting comment token.") .noMore(); }
@VisibleForTesting void setStartingCommentToken(String startingCommentToken) { this.startingCommentToken = startingCommentToken; }
CommentConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setStartingCommentToken(String startingCommentToken) { this.startingCommentToken = startingCommentToken; } }
CommentConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setStartingCommentToken(String startingCommentToken) { this.startingCommentToken = startingCommentToken; }  }
CommentConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setStartingCommentToken(String startingCommentToken) { this.startingCommentToken = startingCommentToken; }  @Override void visitProperties(PropertiesTree tree); @Override void visitComment(SyntaxTrivia trivia); @Override void validateParameters(); }
CommentConventionCheck extends DoubleDispatchVisitorCheck { @VisibleForTesting void setStartingCommentToken(String startingCommentToken) { this.startingCommentToken = startingCommentToken; }  @Override void visitProperties(PropertiesTree tree); @Override void visitComment(SyntaxTrivia trivia); @Override void validateParameters();  }