assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.String", "java.util.List"}));
assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String"}));
}
public void testMatchParameterTypes8() {
ConstructorPattern constructorPattern = Pattern.compileConstructorPattern("new(String, ..)");
assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.String", "java.util.List"}));
assertTrue(constructorPattern.matchParameterTypes(new String[]{"java.lang.String", "java.util.List", "int"}));
assertFalse(constructorPattern.matchParameterTypes(new String[]{"java.lang.String"}));
}