public void testMatchReturnType1() {
MethodPattern methodPattern = Pattern.compileMethodPattern("* method()");
assertTrue(methodPattern.matchReturnType("int"));
assertTrue(methodPattern.matchReturnType("java.lang.String"));
assertTrue(methodPattern.matchReturnType("String"));
assertFalse(methodPattern.matchReturnType(""));
}
public void testMatchReturnType2() {
MethodPattern methodPattern = Pattern.compileMethodPattern("String method()");
assertFalse(methodPattern.matchReturnType("int"));