IDEA-COMMUNITY-CR-1275 (test data corrected)

This commit is contained in:
Roman Shevchenko
2015-01-14 20:49:46 +01:00
parent 95096d0ef2
commit 76b9c81fb4
@@ -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 {