From 4c623422efd8d216ffe6ba70425a7d5250c3b406 Mon Sep 17 00:00:00 2001 From: Peter Hancock Date: Thu, 5 Jul 2012 14:41:54 +0000 Subject: [PATCH] Removed FopFactory.getRendererConfig from public API git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1357639 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/apps/FopFactory.java | 2 +- .../FopFactoryTestCase.java} | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) rename test/java/org/apache/fop/{config/SingleFopConfParseTestCase.java => apps/FopFactoryTestCase.java} (89%) diff --git a/src/java/org/apache/fop/apps/FopFactory.java b/src/java/org/apache/fop/apps/FopFactory.java index 4508ea7fa..6796385e4 100644 --- a/src/java/org/apache/fop/apps/FopFactory.java +++ b/src/java/org/apache/fop/apps/FopFactory.java @@ -295,7 +295,7 @@ public final class FopFactory implements ImageContext { * @return the config object * @throws FOPException when an error occurs while creating the configuration object */ - public RendererConfig getRendererConfig(FOUserAgent userAgent, Configuration cfg, + RendererConfig getRendererConfig(FOUserAgent userAgent, Configuration cfg, RendererConfigParser configCreator) throws FOPException { RendererConfig config = rendererConfig.get(configCreator.getMimeType()); if (config == null) { diff --git a/test/java/org/apache/fop/config/SingleFopConfParseTestCase.java b/test/java/org/apache/fop/apps/FopFactoryTestCase.java similarity index 89% rename from test/java/org/apache/fop/config/SingleFopConfParseTestCase.java rename to test/java/org/apache/fop/apps/FopFactoryTestCase.java index 430de318b..8ac21c994 100644 --- a/test/java/org/apache/fop/config/SingleFopConfParseTestCase.java +++ b/test/java/org/apache/fop/apps/FopFactoryTestCase.java @@ -17,16 +17,15 @@ /* $Id$ */ -package org.apache.fop.config; +package org.apache.fop.apps; import java.io.IOException; import org.junit.Test; import org.xml.sax.SAXException; -import org.apache.fop.apps.FopConfBuilder; import org.apache.fop.apps.MimeConstants; -import org.apache.fop.apps.PDFRendererConfBuilder; +import org.apache.fop.config.BaseConstructiveUserConfigTest; import org.apache.fop.render.RendererConfig.RendererConfigParser; import org.apache.fop.render.pdf.PDFRendererConfig; @@ -35,9 +34,9 @@ import static org.junit.Assert.fail; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -public class SingleFopConfParseTestCase extends BaseConstructiveUserConfigTest { +public class FopFactoryTestCase extends BaseConstructiveUserConfigTest { - public SingleFopConfParseTestCase() throws SAXException, IOException { + public FopFactoryTestCase() throws SAXException, IOException { super(new FopConfBuilder().setStrictValidation(true) .startRendererConfig(PDFRendererConfBuilder.class) .startFontsConfig() -- 2.39.5