aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/intermediate/TestAssistant.java
diff options
context:
space:
mode:
authorMehdi Houshmand <mehdi@apache.org>2012-09-19 15:37:57 +0000
committerMehdi Houshmand <mehdi@apache.org>2012-09-19 15:37:57 +0000
commitc9cbf7e0a418fb7735f6d4a42632b867f3dab36c (patch)
tree33a6758d61d589fe3a6163edf8e3e0dbd55b0022 /test/java/org/apache/fop/intermediate/TestAssistant.java
parentc5a2f0959ec4116022f8e87cd9114b7b152a6c98 (diff)
downloadxmlgraphics-fop-c9cbf7e0a418fb7735f6d4a42632b867f3dab36c.tar.gz
xmlgraphics-fop-c9cbf7e0a418fb7735f6d4a42632b867f3dab36c.zip
Moved the I/O interfaces to XGC and updated code with new resolution mechanism
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_XGC_URI_Resolution@1387645 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop/intermediate/TestAssistant.java')
-rw-r--r--test/java/org/apache/fop/intermediate/TestAssistant.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/java/org/apache/fop/intermediate/TestAssistant.java b/test/java/org/apache/fop/intermediate/TestAssistant.java
index 2be41dca1..2b138de55 100644
--- a/test/java/org/apache/fop/intermediate/TestAssistant.java
+++ b/test/java/org/apache/fop/intermediate/TestAssistant.java
@@ -42,8 +42,11 @@ import org.w3c.dom.Element;
import org.apache.xpath.XPathAPI;
import org.apache.xpath.objects.XObject;
+import org.apache.fop.apps.EnvironmentProfile;
+import org.apache.fop.apps.EnvironmentalProfileFactory;
import org.apache.fop.apps.FopFactory;
import org.apache.fop.apps.FopFactoryBuilder;
+import org.apache.fop.apps.io.ResourceResolverFactory;
/**
* Helper class for running FOP tests.
@@ -115,7 +118,10 @@ public class TestAssistant {
public FopFactory getFopFactory(Document testDoc) {
boolean base14KerningEnabled = isBase14KerningEnabled(testDoc);
boolean strictValidation = isStrictValidation(testDoc);
- FopFactoryBuilder builder = new FopFactoryBuilder(testDir.getParentFile().toURI());
+ EnvironmentProfile envProfile = EnvironmentalProfileFactory.createRestrictedIO(
+ testDir.getParentFile().toURI(),
+ ResourceResolverFactory.createDefaultResourceResolver());
+ FopFactoryBuilder builder = new FopFactoryBuilder(envProfile);
builder.setStrictFOValidation(strictValidation);
builder.getFontManager().setBase14KerningEnabled(base14KerningEnabled);
return builder.build();