aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2020-06-15 12:26:10 +0000
committerSimon Steiner <ssteiner@apache.org>2020-06-15 12:26:10 +0000
commit3a4d13b5bbe0439b5977cd42714cd19a884a7764 (patch)
tree6a787689e1b930ee9be5c29e1f480c50fc1fd09a
parent5043557fddc2ab375d977603f64872a3f59e7605 (diff)
downloadxmlgraphics-fop-3a4d13b5bbe0439b5977cd42714cd19a884a7764.tar.gz
xmlgraphics-fop-3a4d13b5bbe0439b5977cd42714cd19a884a7764.zip
Workaround Windows drive letter case
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1878854 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--fop-core/src/test/java/org/apache/fop/apps/FopConfParserTestCase.java8
1 files 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());
+ }
+
}