assertFalse(methodPattern.matchReturnType("String"));
assertFalse(methodPattern.matchReturnType(""));
}
public void testMatchReturnType4() {
MethodPattern methodPattern = Pattern.compileMethodPattern("java.lang.* method()");
assertFalse(methodPattern.matchReturnType("int"));
assertTrue(methodPattern.matchReturnType("java.lang.String"));
assertTrue(methodPattern.matchReturnType("java.lang.StringBuffer"));
assertTrue(methodPattern.matchReturnType("java.lang.Bar"));
assertFalse(methodPattern.matchReturnType("java.foo.String"));
assertFalse(methodPattern.matchReturnType("String"));
assertFalse(methodPattern.matchReturnType(""));
}