Search in sources :

Example 1 with DeleteDecisionRuleCommand

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();
}
Also used : DeleteDecisionRuleCommand(org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.DeleteDecisionRuleCommand) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 DeleteDecisionRuleCommand (org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.DeleteDecisionRuleCommand)1