use of org.kie.workbench.common.stunner.core.graph.Element in project kie-wb-common by kiegroup.
the class SessionPreviewCanvasHandlerProxyTest method checkNotifyCanvasElementUpdatedDelegatesToWrapped.
@Test
public void checkNotifyCanvasElementUpdatedDelegatesToWrapped() {
final Element candidate = mock(Element.class);
proxy.notifyCanvasElementUpdated(candidate);
verify(wrapped).notifyCanvasElementUpdated(eq(candidate));
}
use of org.kie.workbench.common.stunner.core.graph.Element in project kie-wb-common by kiegroup.
the class SessionPreviewCanvasHandlerProxyTest method checkDockDelegatesToWrapped.
@Test
public void checkDockDelegatesToWrapped() {
final Element parent = mock(Element.class);
final Element child = mock(Element.class);
proxy.dock(parent, child);
verify(wrapped).dock(eq(parent), eq(child));
}
use of org.kie.workbench.common.stunner.core.graph.Element in project kie-wb-common by kiegroup.
the class SessionPreviewCanvasHandlerProxyTest method checkUndockDelegatesToWrapped.
@Test
public void checkUndockDelegatesToWrapped() {
final Element parent = mock(Element.class);
final Element child = mock(Element.class);
proxy.undock(parent, child);
verify(wrapped).undock(eq(parent), eq(child));
}
use of org.kie.workbench.common.stunner.core.graph.Element in project kie-wb-common by kiegroup.
the class SessionPreviewCanvasHandlerProxyTest method checkAddChildWithIndexDelegatesToWrapped.
@Test
public void checkAddChildWithIndexDelegatesToWrapped() {
final Element parent = mock(Element.class);
final Element child = mock(Element.class);
final int index = 0;
proxy.addChild(parent, child, index);
verify(wrapped).addChild(eq(parent), eq(child), eq(index));
}
use of org.kie.workbench.common.stunner.core.graph.Element in project kie-wb-common by kiegroup.
the class SessionPreviewCanvasHandlerProxyTest method checkApplyElementMutationDelegatesToWrapped.
@Test
public void checkApplyElementMutationDelegatesToWrapped() {
final Shape shape = mock(Shape.class);
final Element candidate = mock(Element.class);
final boolean applyPosition = true;
final boolean applyProperties = false;
final MutationContext mutationContext = mock(MutationContext.class);
proxy.applyElementMutation(shape, candidate, applyPosition, applyProperties, mutationContext);
verify(wrapped).applyElementMutation(eq(shape), eq(candidate), eq(applyPosition), eq(applyProperties), eq(mutationContext));
proxy.applyElementMutation(candidate, mutationContext);
verify(wrapped).applyElementMutation(eq(candidate), eq(mutationContext));
proxy.applyElementMutation(candidate, applyPosition, applyProperties, mutationContext);
verify(wrapped).applyElementMutation(eq(candidate), eq(applyPosition), eq(applyProperties), eq(mutationContext));
}
Aggregations