diff options
author | Mehdi Houshmand <mehdi@apache.org> | 2012-05-31 08:33:36 +0000 |
---|---|---|
committer | Mehdi Houshmand <mehdi@apache.org> | 2012-05-31 08:33:36 +0000 |
commit | eccd73c523bdda6a0634e9849141492f7b14ad63 (patch) | |
tree | 72f06ec1481249bdd639083ee646b3c3fd4be7a4 /test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java | |
parent | 05761b1df54ada8a762bfa879dc0e3455d33d828 (diff) | |
download | xmlgraphics-fop-eccd73c523bdda6a0634e9849141492f7b14ad63.tar.gz xmlgraphics-fop-eccd73c523bdda6a0634e9849141492f7b14ad63.zip |
Started unifying URI resolution mechanism, redesigned configuration system and created flexible config testing
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_URI_Unification@1344594 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java')
-rw-r--r-- | test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java b/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java index 4ac61d893..4a261c87e 100644 --- a/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java +++ b/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java @@ -19,19 +19,23 @@ package org.apache.fop.fonts; -import static org.junit.Assert.assertEquals; - import java.io.File; import org.junit.Before; import org.junit.Test; +import org.apache.fop.apps.io.DefaultResourceResolver; +import org.apache.fop.apps.io.URIResolverWrapper; + +import static org.junit.Assert.assertEquals; + /** * */ public class DejaVuLGCSerifTestCase { - private FontResolver fontResolver = FontManager.createMinimalFontResolver(false); + private URIResolverWrapper resolver = new URIResolverWrapper(new File(".").toURI(), + new DefaultResourceResolver()); private CustomFont font; /** @@ -43,7 +47,8 @@ public class DejaVuLGCSerifTestCase { @Before public void setUp() throws Exception { File file = new File("test/resources/fonts/ttf/DejaVuLGCSerif.ttf"); - font = FontLoader.loadFont(file, "", true, EncodingMode.AUTO, fontResolver); + font = FontLoader.loadFont(file.toURI(), "", true, EncodingMode.AUTO, false, false, + resolver); } /** |