assertFalse (methodPattern.matchParameterTypes(
new String[]{"java.lang.String"}));
}
public void testMatchParameterTypes8() {
MethodPattern methodPattern = Pattern.compileMethodPattern("* method(String, ..)");
assertTrue(methodPattern.matchParameterTypes(
new String[]{"java.lang.String","java.util.List"}));
assertTrue(methodPattern.matchParameterTypes(
new String[]{"java.lang.String","java.util.List","int"}));
assertFalse(methodPattern.matchParameterTypes(
new String[]{"java.lang.String"}));
}