Skip to content

Commit

Permalink
Improve test assertion
Browse files Browse the repository at this point in the history
This fixes a test to check an empty map using a proper method rather than relying on its toString representation.
  • Loading branch information
jvz committed Dec 7, 2018
1 parent 9fe9a7e commit 28be9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/test/java/hudson/tasks/MavenTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public void parametersReferencedFromPropertiesShouldRetainBackslashes() throws E
@Test public void testNullHome() {
EnvVars env = new EnvVars();
new MavenInstallation("_", "", Collections.<ToolProperty<?>>emptyList()).buildEnvVars(env);
assertEquals("{}", env.toString());
assertTrue(env.isEmpty());
}

@Issue("JENKINS-26684")
Expand Down

0 comments on commit 28be9e4

Please sign in to comment.