IssuePattern pattern = new IssuePattern("*", "*");
pattern.addLine(12);
assertThat(pattern.match(create(rule, javaFile, null))).isFalse();
assertThat(pattern.match(create(rule, javaFile, 12))).isTrue();
assertThat(pattern.match(create((Rule) null, javaFile, 5))).isFalse();
assertThat(pattern.match(create(rule, null, null))).isFalse();
assertThat(pattern.match(create((Rule) null, null, null))).isFalse();
}
private Issue create(Rule rule, String component, Integer line) {