@Test public void should_follow_a_custom_naming_convention_and_not_raise_an_issue() { FileNameCheck check = new FileNameCheck(); check.setFormat("^[a-z][-a-z]+\\.json$"); JSONCheckVerifier.verify(check, CheckTestUtils.getTestFile("sample.json")) .noMore(); }
@VisibleForTesting public void setFormat(String format) { this.format = format; }
FileNameCheck extends SubscriptionVisitorCheck { @VisibleForTesting public void setFormat(String format) { this.format = format; } }
FileNameCheck extends SubscriptionVisitorCheck { @VisibleForTesting public void setFormat(String format) { this.format = format; }  }
FileNameCheck extends SubscriptionVisitorCheck { @VisibleForTesting public void setFormat(String format) { this.format = format; }  @Override List<Tree.Kind> nodesToVisit(); @Override void visitFile(Tree tree); @Override void validateParameters(); @VisibleForTesting void setFormat(String format); }
FileNameCheck extends SubscriptionVisitorCheck { @VisibleForTesting public void setFormat(String format) { this.format = format; }  @Override List<Tree.Kind> nodesToVisit(); @Override void visitFile(Tree tree); @Override void validateParameters(); @VisibleForTesting void setFormat(String format); static final String DEFAULT; }