提交 9441324d 编写于 作者: O Oliver Gondža

More robust unit test

(cherry picked from commit a87a5a1a)
上级 9eaba2af
...@@ -270,10 +270,10 @@ public class MavenTest { ...@@ -270,10 +270,10 @@ public class MavenTest {
@Issue("JENKINS-26684") @Issue("JENKINS-26684")
@Test public void specialCharsInBuildVariablesPassedAsProperties() throws Exception { @Test public void specialCharsInBuildVariablesPassedAsProperties() throws Exception {
j.configureDefaultMaven(); MavenInstallation maven = j.configureMaven3();
FreeStyleProject p = j.createFreeStyleProject(); FreeStyleProject p = j.createFreeStyleProject();
p.getBuildersList().add(new Maven("--help", null)); p.getBuildersList().add(new Maven("--help", maven.getName()));
p.addProperty(new ParametersDefinitionProperty( p.addProperty(new ParametersDefinitionProperty(
new StringParameterDefinition("tilde", "~"), new StringParameterDefinition("tilde", "~"),
new StringParameterDefinition("exclamation_mark", "!"), new StringParameterDefinition("exclamation_mark", "!"),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册