mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit: don't check for TestCase inheritance twice
This commit is contained in:
@@ -128,10 +128,6 @@ public class JUnitUtil {
|
||||
if (psiMethod.getParameterList().getParametersCount() > 0) return false;
|
||||
if (psiMethod.hasModifierProperty(PsiModifier.STATIC)) return false;
|
||||
if (!psiMethod.getName().startsWith("test")) return false;
|
||||
if (checkClass) {
|
||||
PsiClass testCaseClass = getTestCaseClassOrNull(location);
|
||||
if (testCaseClass == null || !psiMethod.getContainingClass().isInheritor(testCaseClass, true)) return false;
|
||||
}
|
||||
return PsiType.VOID.equals(psiMethod.getReturnType());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user