Skip to content

Commit

Permalink
Removed createMavenModule
Browse files Browse the repository at this point in the history
  • Loading branch information
anusreelakshmi934 committed Jan 7, 2025
1 parent a4a80c8 commit b7cf827
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,26 +107,4 @@ protected Module createMavenModule(File projectDir) throws Exception {
return modules.get(modules.size() - 1);
}

/**
* Create a new module into the test project from existing in memory POM.
*
* @param name the new module name
* @param xml the project POM
* @return the created module
*/
protected Module createMavenModule(String name, String xml) throws Exception {
Module module = getTestFixture().getModule();
VirtualFile moduleDir = ProjectUtil.guessModuleDir(module);
if (moduleDir == null) {
throw new IllegalStateException("Module directory could not be determined.");
}
VirtualFile pomFile = createPomFile(moduleDir, xml);
importProjects(pomFile);
Module[] modules = ModuleManager.getInstance(getTestFixture().getProject()).getModules();
if (modules.length > 0) {
module = modules[modules.length - 1];
setupJdkForModule(module.getName());
}
return module;
}
}

0 comments on commit b7cf827

Please sign in to comment.