use of de.dagere.peass.execution.utils.ProjectModules in project peass by DaGeRe.
the class TestChangedNames method testBoth.
@Test
public void testBoth() throws IOException {
File settingsFile = new File(TestConstants.TEST_RESOURCES, "gradle/settings_with_changed_both.gradle");
File goalFile = new File(TestConstants.CURRENT_FOLDER, "settings.gradle");
FileUtils.copyFile(settingsFile, goalFile);
createModuleFoldersBoth();
ProjectModules modules = SettingsFileParser.getModules(TestConstants.CURRENT_FOLDER);
Assert.assertEquals(3, modules.getModules().size());
}
use of de.dagere.peass.execution.utils.ProjectModules in project peass by DaGeRe.
the class TestGetModules method testOtherSimple.
@Test
public void testOtherSimple() {
File pomFile = new File("src/test/resources/maven-multimodule-pl-example/basic_state/pom.xml");
ExecutionConfig config = new ExecutionConfig();
ProjectModules modules = MavenPomUtil.getModules(pomFile, config);
Assert.assertEquals(4, modules.getModules().size());
}
use of de.dagere.peass.execution.utils.ProjectModules in project peass by DaGeRe.
the class TestGetModules method testWrongPl.
@Test
public void testWrongPl() {
Assertions.assertThrows(RuntimeException.class, () -> {
File pomFile = new File("src/test/resources/maven-multimodule-pl-example/basic_state/pom.xml");
ExecutionConfig config = new ExecutionConfig();
config.setPl("inner-module-1");
ProjectModules modules = MavenPomUtil.getModules(pomFile, config);
});
}
use of de.dagere.peass.execution.utils.ProjectModules in project peass by DaGeRe.
the class TestGetModules method testOtherPlUsing.
@Test
public void testOtherPlUsing() {
File pomFile = new File("src/test/resources/maven-multimodule-pl-example/basic_state/pom.xml");
ExecutionConfig config = new ExecutionConfig();
config.setPl("using-module");
ProjectModules modules = MavenPomUtil.getModules(pomFile, config);
Assert.assertEquals(4, modules.getModules().size());
}
use of de.dagere.peass.execution.utils.ProjectModules in project peass by DaGeRe.
the class TestGetModules method testPeassItself.
@Test
public void testPeassItself() {
File pomFile = new File("../pom.xml");
ProjectModules modules = MavenPomUtil.getModules(pomFile, new ExecutionConfig());
Assert.assertEquals(3, modules.getModules().size());
}
Aggregations