use of org.kie.workbench.common.dmn.client.commands.expressions.types.context.DeleteContextEntryCommand in project kie-wb-common by kiegroup.
the class ContextGridTest method testDeleteContextEntry.
@Test
public void testDeleteContextEntry() {
setupGrid(0);
grid.deleteContextEntry(0);
verify(sessionCommandManager).execute(eq(canvasHandler), deleteContextEntryCommandCaptor.capture());
final DeleteContextEntryCommand deleteContextEntryCommand = deleteContextEntryCommandCaptor.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