@Test public void should_not_follow_a_custom_naming_convention_and_raise_an_issue() { FileNameCheck check = new FileNameCheck(); check.setFormat("^[a-z]+\\.json$"); JSONCheckVerifier.verify(check, CheckTestUtils.getTestFile("file-name.ko.json")) .next().withMessage("Rename this file to match this regular expression: ^[a-z]+\\.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; }