use of org.kie.workbench.common.dmn.client.widgets.grid.columns.factory.TextBoxSingletonDOMElementFactory in project kie-wb-common by kiegroup.
the class InvocationGridTest method testBodyFactoryWhenNested.
@Test
public void testBodyFactoryWhenNested() {
setupGrid(1);
final TextBoxSingletonDOMElementFactory factory = grid.getBodyTextBoxFactory();
assertThat(factory.getHasNoValueCommand().apply(tupleWithoutValue)).isInstanceOf(DeleteCellValueCommand.class);
assertThat(factory.getHasValueCommand().apply(tupleWithValue)).isInstanceOf(SetCellValueCommand.class);
}
use of org.kie.workbench.common.dmn.client.widgets.grid.columns.factory.TextBoxSingletonDOMElementFactory in project kie-wb-common by kiegroup.
the class LiteralExpressionGridTest method testHeaderFactoryWhenNested.
@Test
public void testHeaderFactoryWhenNested() {
setupGrid(1);
final TextBoxSingletonDOMElementFactory factory = grid.getHeaderHasNameTextBoxFactory();
assertCommands(factory.getHasNoValueCommand().apply(tupleWithoutValue), DeleteHeaderValueCommand.class);
assertCommands(factory.getHasValueCommand().apply(tupleWithValue), SetHeaderValueCommand.class);
}
use of org.kie.workbench.common.dmn.client.widgets.grid.columns.factory.TextBoxSingletonDOMElementFactory in project kie-wb-common by kiegroup.
the class LiteralExpressionGridTest method testHeaderFactoryWhenNotNested.
@Test
public void testHeaderFactoryWhenNotNested() {
setupGrid(0);
final TextBoxSingletonDOMElementFactory factory = grid.getHeaderHasNameTextBoxFactory();
assertCommands(factory.getHasNoValueCommand().apply(tupleWithoutValue), DeleteHeaderValueCommand.class, UpdateElementPropertyCommand.class);
assertCommands(factory.getHasValueCommand().apply(tupleWithValue), SetHeaderValueCommand.class, UpdateElementPropertyCommand.class);
}
Aggregations