From 3a4d13b5bbe0439b5977cd42714cd19a884a7764 Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Mon, 15 Jun 2020 12:26:10 +0000 Subject: [PATCH] Workaround Windows drive letter case git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1878854 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/fop/apps/FopConfParserTestCase.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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()); + } + } -- 2.39.5