@Test public void testUnmaskAll() { unmaskRules.add(""); rules = new ClassloadRules(maskRules, unmaskRules); assertThat(rules.canLoad("org.sonar.runner.Foo")).isTrue(); assertThat(rules.canLoad("org.objectweb.asm.ClassVisitor")).isTrue(); assertThat(rules.canLoad("org.apache")).isTrue(); assertThat(rules.canLoad("org.apache.ant.Foo")).isTrue(); assertThat(rules.canLoad("org.apache.ant.project.Project")).isTrue(); }
public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); }
ClassloadRules { public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); } }
ClassloadRules { public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); } ClassloadRules(Set<String> maskRules, Set<String> unmaskRules); }
ClassloadRules { public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); } ClassloadRules(Set<String> maskRules, Set<String> unmaskRules); boolean canLoad(String className); }
ClassloadRules { public boolean canLoad(String className) { return unmaskSize(className) > maskSize(className); } ClassloadRules(Set<String> maskRules, Set<String> unmaskRules); boolean canLoad(String className);  }