public void testMatchMethodName1() {
MethodPattern methodPattern = Pattern.compileMethodPattern("* method(String, int)");
assertTrue(methodPattern.matchMethodName("method"));
assertFalse(methodPattern.matchMethodName("methods"));
assertFalse(methodPattern.matchMethodName("meth"));
assertFalse(methodPattern.matchMethodName(""));
}
public void testMatchMethodName2() {
MethodPattern methodPattern = Pattern.compileMethodPattern("* meth*(..)");
assertTrue(methodPattern.matchMethodName("method"));