mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
run all tests in abstract class inheritors
This commit is contained in:
@@ -102,7 +102,7 @@ public class InheritorChooser {
|
||||
}
|
||||
});
|
||||
JBPopupFactory.getInstance().createListPopupBuilder(list)
|
||||
.setTitle("Choose executable classes to run " + psiMethod.getName())
|
||||
.setTitle("Choose executable classes to run " + (psiMethod != null ? psiMethod.getName() : containingClass.getName()))
|
||||
.setMovable(false)
|
||||
.setResizable(false)
|
||||
.setRequestFocus(true)
|
||||
|
||||
@@ -275,7 +275,7 @@ public class JUnitUtil {
|
||||
public static PsiClass getTestClass(final Location<?> location) {
|
||||
for (Iterator<Location<PsiClass>> iterator = location.getAncestors(PsiClass.class, false); iterator.hasNext();) {
|
||||
final Location<PsiClass> classLocation = iterator.next();
|
||||
if (isTestClass(classLocation)) return classLocation.getPsiElement();
|
||||
if (isTestClass(classLocation.getPsiElement(), false, true)) return classLocation.getPsiElement();
|
||||
}
|
||||
PsiElement element = location.getPsiElement();
|
||||
if (element instanceof PsiClassOwner) {
|
||||
|
||||
Reference in New Issue
Block a user