diff options
Diffstat (limited to 'test/java/org/apache/fop/config/FontMetricsUrlMalformedTestCase.java')
-rw-r--r-- | test/java/org/apache/fop/config/FontMetricsUrlMalformedTestCase.java | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/test/java/org/apache/fop/config/FontMetricsUrlMalformedTestCase.java b/test/java/org/apache/fop/config/FontMetricsUrlMalformedTestCase.java index ddf3ee8a6..3479c3794 100644 --- a/test/java/org/apache/fop/config/FontMetricsUrlMalformedTestCase.java +++ b/test/java/org/apache/fop/config/FontMetricsUrlMalformedTestCase.java @@ -19,13 +19,27 @@ package org.apache.fop.config; +import java.io.IOException; + +import org.xml.sax.SAXException; + +import org.apache.fop.apps.FopConfBuilder; +import org.apache.fop.apps.MimeConstants; +import org.apache.fop.apps.PDFRendererConfBuilder; + /** * this font has a malformed metrics-url */ public class FontMetricsUrlMalformedTestCase extends BaseDestructiveUserConfigTest { - @Override - public String getUserConfigFilename() { - return "test_font_metricsurl_malformed.xconf"; + public FontMetricsUrlMalformedTestCase() throws SAXException, IOException { + super(new FopConfBuilder().setStrictValidation(true) + .startRendererConfig(PDFRendererConfBuilder.class) + .startFontsConfig() + .startFont("badprotocol:test/glb12.ttf.xml", null) + .addTriplet("Gladiator", "normal", "normal") + .endFont() + .endFontConfig() + .endRendererConfig().build()); } } |