Fix maven tests.

This commit is contained in:
Sergey Evdokimov
2012-03-15 13:44:30 +04:00
parent 9772075134
commit 85e8734c41
2 changed files with 2 additions and 1 deletions
@@ -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) {
@@ -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);