Skip to content

Commit

Permalink
#254: Part 2: add missing quotation marks (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceHeu authored Mar 21, 2024
1 parent 8634418 commit 5e283b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public void run() {
if (this.context.getSystemInfo().isWindows()) {
line = normalizeWindowsValue(line);
}
String lineValue = "\"" + line.getValue() + "\"";
line = line.withValue(lineValue);
this.context.info(line.toString());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ public void testRun() {
// act
env.run();
// assert
assertLogMessage(context, IdeLogLevel.INFO, "MVN_VERSION=3.9.*");
assertLogMessage(context, IdeLogLevel.INFO, "SOME=some-${UNDEFINED}");
assertLogMessage(context, IdeLogLevel.INFO, "BAR=bar-some-${UNDEFINED}");
assertLogMessage(context, IdeLogLevel.INFO, "IDE_TOOLS=mvn,eclipse");
assertLogMessage(context, IdeLogLevel.INFO, "ECLIPSE_VERSION=2023-03");
assertLogMessage(context, IdeLogLevel.INFO, "FOO=foo-bar-some-${UNDEFINED}");
assertLogMessage(context, IdeLogLevel.INFO, "JAVA_VERSION=17*");
assertLogMessage(context, IdeLogLevel.INFO, "INTELLIJ_EDITION=ultimate");
assertLogMessage(context, IdeLogLevel.INFO, "DOCKER_EDITION=docker");
assertLogMessage(context, IdeLogLevel.INFO, "MVN_VERSION=\"3.9.*\"");
assertLogMessage(context, IdeLogLevel.INFO, "SOME=\"some-${UNDEFINED}\"");
assertLogMessage(context, IdeLogLevel.INFO, "BAR=\"bar-some-${UNDEFINED}\"");
assertLogMessage(context, IdeLogLevel.INFO, "IDE_TOOLS=\"mvn,eclipse\"");
assertLogMessage(context, IdeLogLevel.INFO, "ECLIPSE_VERSION=\"2023-03\"");
assertLogMessage(context, IdeLogLevel.INFO, "FOO=\"foo-bar-some-${UNDEFINED}\"");
assertLogMessage(context, IdeLogLevel.INFO, "JAVA_VERSION=\"17*\"");
assertLogMessage(context, IdeLogLevel.INFO, "INTELLIJ_EDITION=\"ultimate\"");
assertLogMessage(context, IdeLogLevel.INFO, "DOCKER_EDITION=\"docker\"");
}

/**
Expand Down

0 comments on commit 5e283b3

Please sign in to comment.