mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit pattern configuration: ensure class name is correctly extracted
This commit is contained in:
@@ -90,7 +90,7 @@ public class TestsPattern extends TestPackage {
|
||||
private PsiClass getTestClass(Project project, String className) {
|
||||
SourceScope sourceScope = getSourceScope();
|
||||
GlobalSearchScope searchScope = sourceScope != null ? sourceScope.getGlobalSearchScope() : GlobalSearchScope.allScope(project);
|
||||
return JavaExecutionUtil.findMainClass(project, StringUtil.getPackageName(className, ','), searchScope);
|
||||
return JavaExecutionUtil.findMainClass(project, className.contains(",") ? StringUtil.getPackageName(className, ',') : className, searchScope);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user