use of org.kie.workbench.common.dmn.client.widgets.grid.columns.factory.TextAreaSingletonDOMElementFactory in project kie-wb-common by kiegroup.
the class RelationGridTest method testBodyFactoryWhenNotNested.
@Test
public void testBodyFactoryWhenNotNested() {
setupGrid(0);
final TextAreaSingletonDOMElementFactory factory = grid.getBodyTextAreaFactory();
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.TextAreaSingletonDOMElementFactory in project kie-wb-common by kiegroup.
the class RelationGridTest method testBodyFactoryWhenNested.
@Test
public void testBodyFactoryWhenNested() {
setupGrid(1);
final TextAreaSingletonDOMElementFactory factory = grid.getBodyTextAreaFactory();
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.TextAreaSingletonDOMElementFactory in project kie-wb-common by kiegroup.
the class LiteralExpressionGridTest method testBodyFactoryWhenNested.
@Test
public void testBodyFactoryWhenNested() {
setupGrid(1);
final TextAreaSingletonDOMElementFactory factory = grid.getBodyTextAreaFactory();
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.TextAreaSingletonDOMElementFactory in project kie-wb-common by kiegroup.
the class DecisionTableGridTest method testBodyTextAreaFactoryWhenNested.
@Test
public void testBodyTextAreaFactoryWhenNested() {
setupGrid(makeHasNameForDecision(), 1);
final GridCellTuple tupleWithoutValue = new GridCellTuple(0, 1, gridWidget);
final GridCellValueTuple tupleWithValue = new GridCellValueTuple<>(0, 1, gridWidget, new BaseGridCellValue<>("value"));
final TextAreaSingletonDOMElementFactory factory = grid.getBodyTextAreaFactory();
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.TextAreaSingletonDOMElementFactory in project kie-wb-common by kiegroup.
the class DecisionTableGridTest method testBodyTextAreaFactoryWhenNotNested.
@Test
public void testBodyTextAreaFactoryWhenNotNested() {
setupGrid(makeHasNameForDecision(), 0);
final GridCellTuple tupleWithoutValue = new GridCellTuple(0, 1, gridWidget);
final GridCellValueTuple tupleWithValue = new GridCellValueTuple<>(0, 1, gridWidget, new BaseGridCellValue<>("value"));
final TextAreaSingletonDOMElementFactory factory = grid.getBodyTextAreaFactory();
assertThat(factory.getHasNoValueCommand().apply(tupleWithoutValue)).isInstanceOf(DeleteCellValueCommand.class);
assertThat(factory.getHasValueCommand().apply(tupleWithValue)).isInstanceOf(SetCellValueCommand.class);
}
Aggregations