mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix: IDEA-70400 'Go To Test' for Grails 1.4 tests using @TestFor
This commit is contained in:
@@ -12,11 +12,16 @@ public abstract class JUnitRecognizer {
|
||||
|
||||
public static final ExtensionPointName<JUnitRecognizer> EP_NAME = ExtensionPointName.create("com.intellij.junitRecognizer");
|
||||
|
||||
public boolean isTestClass(@NotNull PsiClass aClass) {
|
||||
public abstract boolean isTestAnnotated(@NotNull PsiMethod method);
|
||||
|
||||
public static boolean willBeAnnotatedAfterCompilation(@NotNull PsiMethod method) {
|
||||
for (JUnitRecognizer jUnitRecognizer : EP_NAME.getExtensions()) {
|
||||
if (jUnitRecognizer.isTestAnnotated(method)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isTestMethod(@NotNull PsiMethod method) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user