Browse Source

Revert change that broke tests in Jenkins.

the File constructor seems to be unable to parse URLs created from
URIs sometimes, leading to a test failure. Most likely the spaces or
parentheses inside of the path of the jenkins workspaces are
responsible.
master
Stefan Bodewig 7 years ago
parent
commit
5773626fd7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java

+ 1
- 1
src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java View File

@@ -128,7 +128,7 @@ public class XMLCatalogTest {
assertNull("Nonexistent Catalog entry should not be returned", isResult);

Source result = catalog.resolve("i/dont/exist.dtd", null);
String expected = toURLString(new File(project.getBaseDir().toURI().toURL() +
String expected = toURLString(new File(project.getBaseDir().toURL() +
"/i/dont/exist.dtd"));
String resultStr = fileURLPartWithoutLeadingSlashes((SAXSource) result);
assertTrue("Nonexistent Catalog entry return input with a system ID like "


Loading…
Cancel
Save