mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-COMMUNITY-CR-1275 (test data corrected)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user