public void testMatchMethodName2() {
ClassPattern classPattern = Pattern.compileClassPattern("foo.bar.*");
assertTrue(classPattern.matches("foo.bar.SomeClass"));
assertTrue(classPattern.matches("foo.bar.SomeOtherClass"));
assertFalse(classPattern.matches("SomeClass"));
assertFalse(classPattern.matches(""));
}
public void testMatchMethodName3() {
ClassPattern classPattern = Pattern.compileClassPattern("foo.*.bar.SomeClass");
assertTrue(classPattern.matches("foo.hey.bar.SomeClass"));