ClassPattern classPattern = Pattern.compileClassPattern("foo.ba*.*");
assertTrue(classPattern.matches("foo.bag.SomeClass"));
assertTrue(classPattern.matches("foo.bar.SomeClass"));
assertTrue(classPattern.matches("foo.ba.SomeClass"));
assertFalse(classPattern.matches("foo.bear.SomeClass"));
assertFalse(classPattern.matches("foo"));
}
public void testMatchMethodName5() {
ClassPattern classPattern = Pattern.compileClassPattern("foo..");
assertTrue(classPattern.matches("foo.hey.bar.SomeClass"));