mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-34054 - assert: JUnitUtil.isTestMethodOrConfig
This commit is contained in:
@@ -195,7 +195,7 @@ public class JUnitUtil {
|
||||
}
|
||||
|
||||
public static boolean isTestMethodOrConfig(@NotNull PsiMethod psiMethod) {
|
||||
if (getTestMethod(psiMethod, false) != null) {
|
||||
if (isTestMethod(PsiLocation.fromPsiElement(psiMethod), false)) {
|
||||
final PsiClass containingClass = psiMethod.getContainingClass();
|
||||
assert containingClass != null : psiMethod + "; " + psiMethod.getClass() + "; " + psiMethod.getParent();
|
||||
if (containingClass.hasModifierProperty(PsiModifier.ABSTRACT)) {
|
||||
|
||||
Reference in New Issue
Block a user