diff options
author | Peter Hancock <phancock@apache.org> | 2012-07-05 14:41:54 +0000 |
---|---|---|
committer | Peter Hancock <phancock@apache.org> | 2012-07-05 14:41:54 +0000 |
commit | 4c623422efd8d216ffe6ba70425a7d5250c3b406 (patch) | |
tree | 6040a74325e014bc81f34eb9ae9780d1e02ae483 | |
parent | e6fad9f9d8e9136f56a43a2f1c7cfdd9d43510e3 (diff) | |
download | xmlgraphics-fop-4c623422efd8d216ffe6ba70425a7d5250c3b406.tar.gz xmlgraphics-fop-4c623422efd8d216ffe6ba70425a7d5250c3b406.zip |
Removed FopFactory.getRendererConfig from public API
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1357639 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/apps/FopFactory.java | 2 | ||||
-rw-r--r-- | test/java/org/apache/fop/apps/FopFactoryTestCase.java (renamed from test/java/org/apache/fop/config/SingleFopConfParseTestCase.java) | 9 |
2 files changed, 5 insertions, 6 deletions
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 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() |