Package org.mapfish.print.processor

Examples of org.mapfish.print.processor.ProcessorGraphNode


        List<ProcessorGraphNode<Object, Object>> allNodes = Lists.newArrayList();
        for (Processor<?, ?> processor : processorGraph.getAllProcessors()) {
            if (processor instanceof MergeDataSourceProcessor) {
                mergeDataSourceProcessor = (MergeDataSourceProcessor) processor;
            } else {
                allNodes.add(new ProcessorGraphNode(processor, null));
            }
        }

        List<ProcessorDependency> result = mergeDataSourceProcessor.createDependencies(allNodes);
        assertEquals(3, result.size());
View Full Code Here


        ProcessorDependencyGraph graph = template.getProcessorGraph();
        List<ProcessorGraphNode> roots = graph.getRoots();

        assertEquals(1, roots.size());
        final ProcessorGraphNode processor = roots.get(0);
        assertEquals(classUnderTest(), processor.getProcessor().getClass());

        final Set dependencies = processor.getAllProcessors();
        dependencies.remove(processor.getProcessor());
        assertEquals(1, dependencies.size());
        assertEquals(testProcessorClass(), dependencies.iterator().next().getClass());

        Values values = new Values();
        values.put(Values.CLIENT_HTTP_REQUEST_FACTORY_KEY, this.httpClientFactory);
View Full Code Here

        ProcessorDependencyGraph graph = template.getProcessorGraph();
        List<ProcessorGraphNode> roots = graph.getRoots();

        assertEquals(1, roots.size());
        final ProcessorGraphNode compositeClientHttpRequestFactoryProcessor = roots.get(0);
        assertEquals(classUnderTest(), compositeClientHttpRequestFactoryProcessor.getProcessor().getClass());
        final Set dependencies = compositeClientHttpRequestFactoryProcessor.getAllProcessors();
        dependencies.remove(compositeClientHttpRequestFactoryProcessor.getProcessor());
        assertEquals(1, dependencies.size());
        assertEquals(CreateMapProcessor.class, dependencies.iterator().next().getClass());
    }
View Full Code Here

TOP

Related Classes of org.mapfish.print.processor.ProcessorGraphNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.