]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Workaround Windows drive letter case
authorSimon Steiner <ssteiner@apache.org>
Mon, 15 Jun 2020 12:26:10 +0000 (12:26 +0000)
committerSimon Steiner <ssteiner@apache.org>
Mon, 15 Jun 2020 12:26:10 +0000 (12:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1878854 13f79535-47bb-0310-9956-ffa450edef68

fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java

index d632c02f3b03ca99f7bd0461bf3a1312599ab6f8..f60d6729618ca22246d130b69024cb4bb8d23b33 100644 (file)
@@ -165,10 +165,14 @@ public class FopConfParserTestCase {
         URI currentDir = new File(".").getCanonicalFile().toURI();
         FopConfParser parser = new FopConfParser(configFile, currentDir);
         FopFactoryBuilder fopFactoryBuilder = parser.getFopFactoryBuilder();
-        assertEquals("base URI", currentDir.resolve(expectedBase),
+        assertEqualsLowerCase("base URI", currentDir.resolve(expectedBase),
                 fopFactoryBuilder.getBaseURI());
-        assertEquals("font base", currentDir.resolve(expectedFontBase),
+        assertEqualsLowerCase("font base", currentDir.resolve(expectedFontBase),
                 fopFactoryBuilder.getFontManager().getResourceResolver().getBaseURI());
     }
 
+    private void assertEqualsLowerCase(String msg, URI a, URI b) {
+        assertEquals(msg, a.toString().toLowerCase(), b.toString().toLowerCase());
+    }
+
 }