From 76b9c81fb412c7db293030393b09ee8357daff1e Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 14 Jan 2015 20:49:46 +0100 Subject: [PATCH] IDEA-COMMUNITY-CR-1275 (test data corrected) --- .../com/intellij/execution/GeneralCommandLineTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 {