@Test public void should_throw_an_illegal_state_exception_as_the_starting_comment_token_parameter_is_not_valid() { try { check.setStartingCommentToken("abc"); JavaPropertiesCheckVerifier.verify(check, CheckTestUtils.getTestFile("comment-convention/commentsHashOnly.properties")); } catch (IllegalStateException e) { assertThat(e.getMessage()).isEqualTo("Check jproperties:comment-convention (All comments should be formatted consistently): " + "startingCommentToken parameter is not valid.\nActual: 'abc'\nExpected: '#' or '!'"); } }
@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();  }