use of org.kie.workbench.common.dmn.client.commands.general.DeleteCellValueCommand in project kie-wb-common by kiegroup.
the class BaseDOMElementTest method checkFlushWithoutValue.
@Test
@SuppressWarnings("unchecked")
public void checkFlushWithoutValue() {
domElement.flush("");
verify(sessionCommandManager).execute(eq(canvasHandler), deleteCellValueCommandArgumentCaptor.capture());
final DeleteCellValueCommand command = deleteCellValueCommandArgumentCaptor.getValue();
command.getGraphCommand(canvasHandler).execute(graphCommandExecutionContext);
verify(uiModelMapper).toDMNModel(eq(0), eq(1), valueSupplierArgumentCaptor.capture());
final Supplier<Optional<GridCellValue<?>>> valueSupplier = valueSupplierArgumentCaptor.getValue();
assertFalse(valueSupplier.get().isPresent());
}
Aggregations