From: Simon Steiner Date: Mon, 15 Jun 2020 12:26:10 +0000 (+0000) Subject: Workaround Windows drive letter case X-Git-Tag: fop-2_6~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a4d13b5bbe0439b5977cd42714cd19a884a7764;p=xmlgraphics-fop.git Workaround Windows drive letter case git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1878854 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java b/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java index d632c02f3..f60d67296 100644 --- a/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java +++ b/fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java @@ -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()); + } + }