mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
create test: try to find module with test roots depending on current module (IDEA-162421)
This commit is contained in:
@@ -142,6 +142,16 @@ public class CreateTestAction extends PsiElementBaseIntentionAction {
|
||||
return module;
|
||||
}
|
||||
}
|
||||
|
||||
if (computeSuitableTestRootUrls(productionModule).isEmpty()) {
|
||||
final HashSet<Module> modules = new HashSet<>();
|
||||
ModuleUtilCore.collectModulesDependsOn(productionModule, modules);
|
||||
modules.remove(productionModule);
|
||||
for (Module module : modules) {
|
||||
if (!computeSuitableTestRootUrls(module).isEmpty()) return module;
|
||||
}
|
||||
}
|
||||
|
||||
return productionModule;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user