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();
}
Aggregations