public void testMatch1() {
ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(String, int)");
assertTrue(constructorPattern.matchConstructorName("new"));
assertFalse(constructorPattern.matchConstructorName("methods"));
assertFalse(constructorPattern.matchConstructorName("meth"));
assertFalse(constructorPattern.matchConstructorName(""));
}
public void testMatch2() {
ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(..)");
assertTrue(constructorPattern.matchConstructorName("new"));