@Test public void should_not_match_the_required_custom_value_and_raise_an_issue() { PuppetEnforceAuthorValueCheck check = new PuppetEnforceAuthorValueCheck(); check.setAuthor("Smith"); JSONCheckVerifier.verify( check, CheckTestUtils.getTestFile("puppet/author/custom/metadata.json")) .next().startAtLine(4).startAtColumn(13).endAtLine(4).endAtColumn(18).withMessage("Set the author to \"Smith\".") .noMore(); }
@VisibleForTesting public void setAuthor(String author) { this.author = author; }
PuppetEnforceAuthorValueCheck extends AbstractPuppetCheck { @VisibleForTesting public void setAuthor(String author) { this.author = author; } }
PuppetEnforceAuthorValueCheck extends AbstractPuppetCheck { @VisibleForTesting public void setAuthor(String author) { this.author = author; }  }
PuppetEnforceAuthorValueCheck extends AbstractPuppetCheck { @VisibleForTesting public void setAuthor(String author) { this.author = author; }  @Override void visitPair(PairTree pair); @VisibleForTesting void setAuthor(String author); }
PuppetEnforceAuthorValueCheck extends AbstractPuppetCheck { @VisibleForTesting public void setAuthor(String author) { this.author = author; }  @Override void visitPair(PairTree pair); @VisibleForTesting void setAuthor(String author);  }