Search in sources :

Example 1 with DeleteParameterBindingCommand

use of org.kie.workbench.common.dmn.client.commands.expressions.types.invocation.DeleteParameterBindingCommand in project kie-wb-common by kiegroup.

the class InvocationGridTest method testDeleteParameterBinding.

@Test
public void testDeleteParameterBinding() {
    setupGrid(0);
    grid.deleteParameterBinding(0);
    verify(sessionCommandManager).execute(eq(canvasHandler), deleteParameterBindingCommandCaptor.capture());
    final DeleteParameterBindingCommand deleteParameterBindingCommand = deleteParameterBindingCommandCaptor.getValue();
    deleteParameterBindingCommand.execute(canvasHandler);
    verify(parent).onResize();
    verify(gridPanel).refreshScrollPosition();
    verify(gridPanel).updatePanelSize();
    verify(gridLayer).batch(redrawCommandCaptor.capture());
    final GridLayerRedrawManager.PrioritizedCommand redrawCommand = redrawCommandCaptor.getValue();
    redrawCommand.execute();
    verify(gridLayer).draw();
}
Also used : GridLayerRedrawManager(org.uberfire.ext.wires.core.grids.client.widget.layer.impl.GridLayerRedrawManager) DeleteParameterBindingCommand(org.kie.workbench.common.dmn.client.commands.expressions.types.invocation.DeleteParameterBindingCommand) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 DeleteParameterBindingCommand (org.kie.workbench.common.dmn.client.commands.expressions.types.invocation.DeleteParameterBindingCommand)1 GridLayerRedrawManager (org.uberfire.ext.wires.core.grids.client.widget.layer.impl.GridLayerRedrawManager)1