@Test public void test_matchesAsClass() { assertTrue(ClassMatcher.matchesAsClass("hu.awm.MyClass", Collections.singletonList("hu.awm.MyClass"))); assertTrue(ClassMatcher.matchesAsClass("hu.awm.MyClass", Arrays.asList("hu.awm.SomethingElse", "hu.awm.MyClass"))); assertFalse(ClassMatcher.matchesAsClass("hu.awm.MyClass$InnerClass", Collections.singletonList("hu.awm.MyClass"))); assertFalse(ClassMatcher.matchesAsClass("hu.awm.other.package.MyClass", Collections.singletonList("hu.awm.MyClass"))); assertFalse(ClassMatcher.matchesAsClass("hu.awm.MyClass", Collections.singletonList("hu.awm.SomethingElse"))); assertFalse(ClassMatcher.matchesAsClass("hu.awm.MyClass", new ArrayList<String>())); }
static boolean matchesAsClass(String classFqn, List<String> fqns) { return fqns.contains(classFqn); }
ClassMatcher { static boolean matchesAsClass(String classFqn, List<String> fqns) { return fqns.contains(classFqn); } }
ClassMatcher { static boolean matchesAsClass(String classFqn, List<String> fqns) { return fqns.contains(classFqn); } private  ClassMatcher(); }
ClassMatcher { static boolean matchesAsClass(String classFqn, List<String> fqns) { return fqns.contains(classFqn); } private  ClassMatcher();  }
ClassMatcher { static boolean matchesAsClass(String classFqn, List<String> fqns) { return fqns.contains(classFqn); } private  ClassMatcher();   }