Search in sources :

Example 6 with MutationContext

use of org.kie.workbench.common.stunner.core.client.shape.MutationContext in project kie-wb-common by kiegroup.

the class SessionPreviewCanvasHandlerProxyTest method checkUpdateElementPositionDelegatesToWrapped.

@Test
public void checkUpdateElementPositionDelegatesToWrapped() {
    final Element candidate = mock(Element.class);
    final MutationContext mutationContext = mock(MutationContext.class);
    proxy.updateElementPosition(candidate, mutationContext);
    verify(wrapped).updateElementPosition(eq(candidate), eq(mutationContext));
}
Also used : Element(org.kie.workbench.common.stunner.core.graph.Element) MutationContext(org.kie.workbench.common.stunner.core.client.shape.MutationContext) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 MutationContext (org.kie.workbench.common.stunner.core.client.shape.MutationContext)6 Element (org.kie.workbench.common.stunner.core.graph.Element)3 ActivityShape (org.kie.workbench.common.stunner.cm.client.shape.ActivityShape)2 ActivityView (org.kie.workbench.common.stunner.cm.client.shape.view.ActivityView)2 Edge (org.kie.workbench.common.stunner.core.graph.Edge)2 Node (org.kie.workbench.common.stunner.core.graph.Node)2 View (org.kie.workbench.common.stunner.core.graph.content.view.View)2 PictureShapeView (org.kie.workbench.common.stunner.shapes.client.view.PictureShapeView)2 Shape (org.kie.workbench.common.stunner.core.client.shape.Shape)1