Search in sources :

Example 26 with TestingGraphMockHandler

use of org.kie.workbench.common.stunner.core.TestingGraphMockHandler in project kie-wb-common by kiegroup.

the class TreeWalkTraverseProcessorImplTest method setup.

@Before
public void setup() {
    this.graphTestHandler = new TestingGraphMockHandler();
    this.tested = new TreeWalkTraverseProcessorImpl().useStartNodePredicate(n -> n.getInEdges().isEmpty());
}
Also used : TestingGraphInstanceBuilder(org.kie.workbench.common.stunner.core.TestingGraphInstanceBuilder) Edge(org.kie.workbench.common.stunner.core.graph.Edge) RunWith(org.junit.runner.RunWith) Test(org.junit.Test) Mockito.times(org.mockito.Mockito.times) Mockito.when(org.mockito.Mockito.when) Mockito.verify(org.mockito.Mockito.verify) Matchers.any(org.mockito.Matchers.any) Mockito.never(org.mockito.Mockito.never) MockitoJUnitRunner(org.mockito.runners.MockitoJUnitRunner) Matchers.eq(org.mockito.Matchers.eq) Optional(java.util.Optional) Node(org.kie.workbench.common.stunner.core.graph.Node) Before(org.junit.Before) TestingGraphMockHandler(org.kie.workbench.common.stunner.core.TestingGraphMockHandler) Mockito.mock(org.mockito.Mockito.mock) TestingGraphMockHandler(org.kie.workbench.common.stunner.core.TestingGraphMockHandler) Before(org.junit.Before)

Aggregations

TestingGraphMockHandler (org.kie.workbench.common.stunner.core.TestingGraphMockHandler)26 Before (org.junit.Before)21 Node (org.kie.workbench.common.stunner.core.graph.Node)6 BoundImpl (org.kie.workbench.common.stunner.core.graph.content.view.BoundImpl)6 BoundsImpl (org.kie.workbench.common.stunner.core.graph.content.view.BoundsImpl)6 Test (org.junit.Test)5 Edge (org.kie.workbench.common.stunner.core.graph.Edge)5 TreeWalkTraverseProcessorImpl (org.kie.workbench.common.stunner.core.graph.processing.traverse.tree.TreeWalkTraverseProcessorImpl)5 Bounds (org.kie.workbench.common.stunner.core.graph.content.Bounds)4 Point2D (org.kie.workbench.common.stunner.core.graph.content.view.Point2D)4 View (org.kie.workbench.common.stunner.core.graph.content.view.View)4 Ignore (org.junit.Ignore)3 ChildrenTraverseProcessorImpl (org.kie.workbench.common.stunner.core.graph.processing.traverse.content.ChildrenTraverseProcessorImpl)3 RuleEvaluationContext (org.kie.workbench.common.stunner.core.rule.RuleEvaluationContext)3 LocalClipboardControl (org.kie.workbench.common.stunner.core.client.canvas.controls.clipboard.LocalClipboardControl)2 HashMap (java.util.HashMap)1 Optional (java.util.Optional)1 RunWith (org.junit.runner.RunWith)1 TestingGraphInstanceBuilder (org.kie.workbench.common.stunner.core.TestingGraphInstanceBuilder)1 ControlPointImpl (org.kie.workbench.common.stunner.core.graph.content.view.ControlPointImpl)1