aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/URIResolutionTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/java/org/apache/fop/URIResolutionTestCase.java')
-rw-r--r--test/java/org/apache/fop/URIResolutionTestCase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/java/org/apache/fop/URIResolutionTestCase.java b/test/java/org/apache/fop/URIResolutionTestCase.java
index fd4f879da..0a197722b 100644
--- a/test/java/org/apache/fop/URIResolutionTestCase.java
+++ b/test/java/org/apache/fop/URIResolutionTestCase.java
@@ -92,7 +92,7 @@ public class URIResolutionTestCase extends AbstractFOPTestCase {
MyURIResolver resolver = new MyURIResolver(withStream);
ua.setURIResolver(resolver);
- ua.setBaseURL(foFile.getParentFile().toURL().toString());
+ ua.setBaseURL(foFile.getParentFile().toURI().toURL().toString());
Document doc = createAreaTree(foFile, ua);
@@ -119,7 +119,7 @@ public class URIResolutionTestCase extends AbstractFOPTestCase {
FOUserAgent ua = fopFactory.newFOUserAgent();
MyURIResolver resolver = new MyURIResolver(false);
ua.setURIResolver(resolver);
- ua.setBaseURL(foFile.getParentFile().toURL().toString());
+ ua.setBaseURL(foFile.getParentFile().toURI().toURL().toString());
ByteArrayOutputStream baout = new ByteArrayOutputStream();