mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix maven tests.
This commit is contained in:
+1
@@ -107,6 +107,7 @@ public class MavenRunnerParameters implements Cloneable {
|
||||
}
|
||||
|
||||
public void setGoals(@Nullable List<String> goals) {
|
||||
if (myGoals == goals) return; // Called from XML Serializer
|
||||
myGoals.clear();
|
||||
|
||||
if (goals != null) {
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ public class MavenRunConfigurationTest extends IdeaTestCase {
|
||||
public void testSaveLoadRunnerParameters() {
|
||||
MavenRunConfiguration.MavenSettings s = new MavenRunConfiguration.MavenSettings(myProject);
|
||||
s.myRunnerParameters.setWorkingDirPath("some path");
|
||||
s.myRunnerParameters.setGoals(Arrays.asList("clean validate"));
|
||||
s.myRunnerParameters.setGoals(Arrays.asList("clean", "validate"));
|
||||
s.myRunnerParameters.setProfilesMap(ImmutableMap.of("prof1", true, "prof2", true, "prof3", false));
|
||||
|
||||
Element xml = XmlSerializer.serialize(s);
|
||||
|
||||
Reference in New Issue
Block a user