use of org.kie.workbench.common.stunner.core.client.command.SessionCommandManager in project kie-wb-common by kiegroup.
the class DeleteNodeActionTest method testSkipAction.
@Test
@SuppressWarnings("unchecked")
public void testSkipAction() {
this.tested = new DeleteNodeAction(translationService, sessionCommandManager, commandFactory, action -> false);
final MouseClickEvent event = mock(MouseClickEvent.class);
ToolboxAction<AbstractCanvasHandler> cascade = tested.onMouseClick(canvasHandler, E_UUID, event);
assertEquals(tested, cascade);
verify(sessionCommandManager, never()).execute(eq(canvasHandler), any(CanvasCommand.class));
}
Aggregations