Author: ssteiner
Date: Mon Jun 15 12:26:10 2020
New Revision: 1878854

URL: http://svn.apache.org/viewvc?rev=1878854&view=rev
Log:
Workaround Windows drive letter case

Modified:
    
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java

Modified: 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java?rev=1878854&r1=1878853&r2=1878854&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java
 (original)
+++ 
xmlgraphics/fop/trunk/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java
 Mon Jun 15 12:26:10 2020
@@ -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());
+    }
+
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-h...@xmlgraphics.apache.org

Reply via email to