Skip to content

Commit

Permalink
Fix in path comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
t-dan committed Nov 9, 2018
1 parent eba3d6d commit 3204d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/test/net/sourceforge/cruisecontrol/MainTest.java
Expand Up @@ -260,11 +260,11 @@ public void testParseXslPath() throws Exception {
assertEquals(new File(".").getAbsolutePath(), Main.parseXslPath()); // use default value

try {
fillOptions(new String[] {"xslpath", invalidXsl});
fillOptions(new String[] {"xslpath", invalidXsl}); // Relative to the current working dir
Main.parseXslPath();
fail();
} catch (IllegalArgumentException expected) {
assertEquals("xslpath=" + invalidXsl + ": file does not exist",
assertEquals("xslpath=" + new File(invalidXsl).getAbsolutePath() + ": file does not exist",
expected.getMessage());
}
}
Expand Down

0 comments on commit 3204d18

Please sign in to comment.