mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
generate test method template: do not override users template with default method body (IDEA-83443)
This commit is contained in:
@@ -160,7 +160,9 @@ public class TestIntegrationUtils {
|
||||
if (el != null) {
|
||||
PsiMethod method = PsiTreeUtil.getParentOfType(el, PsiMethod.class, false);
|
||||
if (method != null) {
|
||||
GenerateMembersUtil.setupGeneratedMethod(method);
|
||||
if (method.findDeepestSuperMethods().length > 0) {
|
||||
GenerateMembersUtil.setupGeneratedMethod(method);
|
||||
}
|
||||
CreateFromUsageUtils.setupEditor(method, editor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user