Search in sources :

Example 1 with SetOrientationCommand

use of org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.SetOrientationCommand in project kie-wb-common by kiegroup.

the class DecisionTableGridTest method testSetDecisionTableOrientation.

@Test
public void testSetDecisionTableOrientation() {
    final DecisionTableOrientation orientation = DecisionTableOrientation.RULE_AS_ROW;
    setupGrid(makeHasNameForDecision(), 0);
    grid.setDecisionTableOrientation(orientation);
    verify(sessionCommandManager).execute(eq(canvasHandler), setOrientationCommandCaptor.capture());
    final SetOrientationCommand setOrientationCommand = setOrientationCommandCaptor.getValue();
    setOrientationCommand.execute(canvasHandler);
    verify(gridLayer).batch();
}
Also used : SetOrientationCommand(org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.SetOrientationCommand) DecisionTableOrientation(org.kie.workbench.common.dmn.api.definition.v1_1.DecisionTableOrientation) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 DecisionTableOrientation (org.kie.workbench.common.dmn.api.definition.v1_1.DecisionTableOrientation)1 SetOrientationCommand (org.kie.workbench.common.dmn.client.commands.expressions.types.dtable.SetOrientationCommand)1