Browse Source

Removed FopFactory.getRendererConfig from public API


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1357639 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-2_0
Peter Hancock 12 years ago
parent
commit
4c623422ef

+ 1
- 1
src/java/org/apache/fop/apps/FopFactory.java View File

@@ -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) {

test/java/org/apache/fop/config/SingleFopConfParseTestCase.java → test/java/org/apache/fop/apps/FopFactoryTestCase.java View File

@@ -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()

Loading…
Cancel
Save