diff --git a/platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java b/platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java index 18cb49ef947c..64d82f734b59 100644 --- a/platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java +++ b/platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java @@ -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 nonEmpty = Pair.create("a", "b"); - Map inputEnv = newHashMap(Pair.create("", "c"), nonEmpty); + Map env = newHashMap(pair("a", "b"), pair("", "c")); + Map 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 {