use of org.kie.workbench.common.dmn.client.commands.expressions.types.list.DeleteListRowCommand in project kie-wb-common by kiegroup.
the class ListGridTest method testDeleteListRow.
@Test
public void testDeleteListRow() {
setupGrid();
grid.deleteRow(0);
verify(sessionCommandManager).execute(eq(canvasHandler), deleteListRowCommandCaptor.capture());
final DeleteListRowCommand deleteContextEntryCommand = deleteListRowCommandCaptor.getValue();
deleteContextEntryCommand.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