use of de.dagere.peass.execution.utils.ProjectModules in project peass by DaGeRe.
the class TestBuildGradle method testNoUpdate.
@Test
public void testNoUpdate() throws IOException {
final File gradleFile = new File(GRADLE_BUILDFILE_FOLDER, "differentPlugin.gradle");
final File destFile = copyGradlefile(gradleFile);
GradleBuildfileEditor editor = new GradleBuildfileEditor(mockedTransformer, destFile, new ProjectModules(CURRENT));
editor.addDependencies(new File("xyz"));
Assert.assertTrue(FileUtils.contentEquals(gradleFile, destFile));
}
use of de.dagere.peass.execution.utils.ProjectModules in project peass by DaGeRe.
the class TestChangedNames method testSuffix.
@Test
public void testSuffix() throws IOException {
File settingsFile = new File(TestConstants.TEST_RESOURCES, "gradle/settings_with_changed_suffix.gradle");
File goalFile = new File(TestConstants.CURRENT_FOLDER, "settings.gradle");
FileUtils.copyFile(settingsFile, goalFile);
createModuleFoldersSuffix();
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 TestChangedNames method testPrefix.
@Test
public void testPrefix() throws IOException {
File settingsFile = new File(TestConstants.TEST_RESOURCES, "gradle/settings_with_changed_prefix.gradle");
File goalFile = new File(TestConstants.CURRENT_FOLDER, "settings.gradle");
FileUtils.copyFile(settingsFile, goalFile);
createModuleFoldersPrefix();
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 testOtherPl1.
@Test
public void testOtherPl1() {
File pomFile = new File("src/test/resources/maven-multimodule-pl-example/basic_state/pom.xml");
ExecutionConfig config = new ExecutionConfig();
config.setPl("de.peass:inner-module-1");
ProjectModules modules = MavenPomUtil.getModules(pomFile, config);
Assert.assertEquals(2, modules.getModules().size());
}
use of de.dagere.peass.execution.utils.ProjectModules in project peass by DaGeRe.
the class TestGetModules method testOtherPl2.
@Test
public void testOtherPl2() {
File pomFile = new File("src/test/resources/maven-multimodule-pl-example/basic_state/pom.xml");
ExecutionConfig config = new ExecutionConfig();
config.setPl("de.peass:inner-module-test2");
ProjectModules modules = MavenPomUtil.getModules(pomFile, config);
Assert.assertEquals(3, modules.getModules().size());
}
Aggregations