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();
}
Aggregations