Improve test assertion
This fixes a test to check an empty map using a proper method rather than relying on its toString representation.
@@ -270,7 +270,7 @@ public class MavenTest {
@Test public void testNullHome() {
EnvVars env = new EnvVars();
new MavenInstallation("_", "", Collections.<ToolProperty<?>>emptyList()).buildEnvVars(env);
- assertEquals("{}", env.toString());
+ assertTrue(env.isEmpty());
}
@Issue("JENKINS-26684")
