use of org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.DeleteDecisionRuleCommand in project kie-wb-common by kiegroup.
the class DecisionTableGridTest method testDeleteDecisionRule.
@Test
public void testDeleteDecisionRule() {
setupGrid(makeHasNameForDecision(), 0);
grid.deleteDecisionRule(0);
verify(sessionCommandManager).execute(eq(canvasHandler), deleteDecisionRuleCommandCaptor.capture());
final DeleteDecisionRuleCommand deleteDecisionRuleCommand = deleteDecisionRuleCommandCaptor.getValue();
deleteDecisionRuleCommand.execute(canvasHandler);
verifyGridPanelRefresh();
}
Aggregations