IDEA-COMMUNITY-CR-1275 (test data corrected)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Wed, 14 Jan 2015 19:49:46 +0000 (20:49 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Wed, 14 Jan 2015 19:49:46 +0000 (20:49 +0100)
platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java

index 18cb49ef947c26b955a011f9ce7705f9da82f807..64d82f734b59892e77bbde928633b79f80b950e4 100644 (file)
@@ -17,7 +17,6 @@ package com.intellij.execution;
 
 import com.intellij.execution.configurations.GeneralCommandLine;
 import com.intellij.execution.util.ExecUtil;
-import com.intellij.openapi.util.Pair;
 import com.intellij.openapi.util.SystemInfo;
 import com.intellij.openapi.util.io.FileUtil;
 import com.intellij.openapi.util.text.StringUtil;
@@ -243,10 +242,10 @@ public class GeneralCommandLineTest {
 
   @Test
   public void emptyEnvironmentPassing() throws Exception {
-    Pair<String, String> nonEmpty = Pair.create("a", "b");
-    Map<String, String> inputEnv = newHashMap(Pair.create("", "c"), nonEmpty);
+    Map<String, String> env = newHashMap(pair("a", "b"), pair("", "c"));
+    Map<String, String> expected = newHashMap(pair("a", "b"));
     GeneralCommandLine commandLine = makeJavaCommand(EnvPassingTest.class, null);
-    checkEnvPassing(commandLine, inputEnv, SystemInfo.isWindows ? newHashMap(nonEmpty) : inputEnv, false);
+    checkEnvPassing(commandLine, env, expected, false);
   }
 
   private static String execAndGetOutput(GeneralCommandLine commandLine, @Nullable String encoding) throws Exception {