Skip to content

Commit

Permalink
More robust unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Mar 2, 2015
1 parent 8d9329e commit a87a5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/test/java/hudson/tasks/MavenTest.java
Expand Up @@ -270,10 +270,10 @@ public void testNullHome() throws Exception {

@Issue("JENKINS-26684")
@Test public void specialCharsInBuildVariablesPassedAsProperties() throws Exception {
j.configureDefaultMaven();
MavenInstallation maven = j.configureMaven3();

FreeStyleProject p = j.createFreeStyleProject();
p.getBuildersList().add(new Maven("--help", null));
p.getBuildersList().add(new Maven("--help", maven.getName()));
p.addProperty(new ParametersDefinitionProperty(
new StringParameterDefinition("tilde", "~"),
new StringParameterDefinition("exclamation_mark", "!"),
Expand Down

0 comments on commit a87a5a1

Please sign in to comment.