use of org.kie.workbench.common.dmn.client.widgets.grid.controls.list.HasListSelectorControl.ListSelectorItem in project kie-wb-common by kiegroup.
the class UndefinedExpressionColumnTest method testGetItems.
@Test
public void testGetItems() {
final List<ListSelectorItem> items = column.getItems(0, 0);
assertThat(items).isNotNull();
assertThat(items.size()).isEqualTo(1);
final ListSelectorItem item = items.get(0);
assertThat(item).isInstanceOf(ListSelectorTextItem.class);
final ListSelectorTextItem textItem = (ListSelectorTextItem) item;
assertThat(textItem.getText()).isEqualTo(LiteralExpression.class.getSimpleName());
textItem.getCommand().execute();
verify(gridWidget).onExpressionTypeChanged(eq(ExpressionType.LITERAL_EXPRESSION));
}
use of org.kie.workbench.common.dmn.client.widgets.grid.controls.list.HasListSelectorControl.ListSelectorItem in project kie-wb-common by kiegroup.
the class UndefinedExpressionColumnTest method testOnItemSelectedWithExpressionTypeSelected.
@Test
public void testOnItemSelectedWithExpressionTypeSelected() {
final List<ListSelectorItem> items = column.getItems(0, 0);
final ListSelectorTextItem ti = (ListSelectorTextItem) items.get(0);
column.onItemSelected(ti);
verify(gridWidget).onExpressionTypeChanged(eq(ExpressionType.LITERAL_EXPRESSION));
}
Aggregations