Search in sources :

Example 1 with ChildrenTraverseProcessor

use of org.kie.workbench.common.stunner.core.graph.processing.traverse.content.ChildrenTraverseProcessor in project kie-wb-common by kiegroup.

the class GraphBoundsIndexerImplTest method setup.

@Before
public void setup() {
    this.graphTestHandlerParent = new TestingGraphMockHandler();
    graphInstanceParent = TestingGraphInstanceBuilder.newGraph2(graphTestHandlerParent);
    ChildrenTraverseProcessor childrenTraverseProcessor = new ChildrenTraverseProcessorImpl(new TreeWalkTraverseProcessorImpl());
    graphBoundsIndexerImpl = new GraphBoundsIndexerImpl(childrenTraverseProcessor);
    graphBoundsIndexerImpl.build(graphInstanceParent.graph);
}
Also used : ChildrenTraverseProcessor(org.kie.workbench.common.stunner.core.graph.processing.traverse.content.ChildrenTraverseProcessor) ChildrenTraverseProcessorImpl(org.kie.workbench.common.stunner.core.graph.processing.traverse.content.ChildrenTraverseProcessorImpl) GraphBoundsIndexerImpl(org.kie.workbench.common.stunner.core.graph.processing.index.bounds.GraphBoundsIndexerImpl) TestingGraphMockHandler(org.kie.workbench.common.stunner.core.TestingGraphMockHandler) TreeWalkTraverseProcessorImpl(org.kie.workbench.common.stunner.core.graph.processing.traverse.tree.TreeWalkTraverseProcessorImpl) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 TestingGraphMockHandler (org.kie.workbench.common.stunner.core.TestingGraphMockHandler)1 GraphBoundsIndexerImpl (org.kie.workbench.common.stunner.core.graph.processing.index.bounds.GraphBoundsIndexerImpl)1 ChildrenTraverseProcessor (org.kie.workbench.common.stunner.core.graph.processing.traverse.content.ChildrenTraverseProcessor)1 ChildrenTraverseProcessorImpl (org.kie.workbench.common.stunner.core.graph.processing.traverse.content.ChildrenTraverseProcessorImpl)1 TreeWalkTraverseProcessorImpl (org.kie.workbench.common.stunner.core.graph.processing.traverse.tree.TreeWalkTraverseProcessorImpl)1