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:
Anton Makeev
2012-04-04 12:48:51 +02:00
parent ee20e17ae3
commit 3a7a7ec06c
2 changed files with 1 additions and 5 deletions
@@ -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)) {