mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Go To test: go to and create test for enums and interfaces (IDEA-77077, IDEA-23271) (cherry picked from commit cdb6bde)
This commit is contained in:
@@ -69,10 +69,7 @@ public class JavaTestFinder implements TestFinder {
|
||||
}
|
||||
|
||||
private static boolean isTestSubjectClass(PsiClass klass) {
|
||||
if (klass.isEnum()
|
||||
|| klass.isInterface()
|
||||
|| klass.isAnnotationType()
|
||||
|| TestFrameworks.getInstance().isTestClass(klass)) {
|
||||
if (klass.isAnnotationType() || TestFrameworks.getInstance().isTestClass(klass)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -72,7 +72,6 @@ public class CreateTestAction extends PsiElementBaseIntentionAction {
|
||||
if (srcModule == null) return false;
|
||||
|
||||
if (psiClass.isAnnotationType() ||
|
||||
psiClass.isInterface() ||
|
||||
psiClass instanceof PsiAnonymousClass ||
|
||||
PsiTreeUtil.getParentOfType(psiClass, PsiClass.class) != null || // inner
|
||||
isUnderTestSources(psiClass)) {
|
||||
|
||||
Reference in New Issue
Block a user