Skip to content

Commit

Permalink
Merge pull request #1206 from anusreelakshmi934/Issue#1086
Browse files Browse the repository at this point in the history
Removed the Unused createMavenModule method
  • Loading branch information
anusreelakshmi934 authored Jan 8, 2025
2 parents ebc7a3c + 2b8a7f2 commit 563dd33
Showing 1 changed file with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ protected void setUpFixtures() throws Exception {
LanguageLevelProjectExtension.getInstance(testFixture.getProject()).setLanguageLevel(LanguageLevel.JDK_1_6);
}

protected Module createJavaModule(final String name) throws Exception {
ModuleFixture moduleFixture = myProjectBuilder.addModule(JavaModuleFixtureBuilder.class).getFixture();
moduleFixture.setUp();
Module module = myProjectBuilder.addModule(JavaModuleFixtureBuilder.class).getFixture().getModule();
return module;
}

private static AtomicInteger counter = new AtomicInteger(0);

/**
Expand Down Expand Up @@ -106,23 +99,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();
File moduleDir = new File(module.getModuleFilePath()).getParentFile();
VirtualFile pomFile = createPomFile(LocalFileSystem.getInstance().findFileByIoFile(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 563dd33

Please sign in to comment.