use of org.drools.workbench.screens.guided.dtable.client.widget.table.events.cdi.RefreshMetaDataPanelEvent in project drools-wb by kiegroup.
the class GuidedDecisionTablePresenter method refreshColumnsPage.
void refreshColumnsPage() {
refreshAttributesPanelEvent.fire(new RefreshAttributesPanelEvent(this, model.getAttributeCols()));
refreshMetaDataPanelEvent.fire(new RefreshMetaDataPanelEvent(this, model.getMetadataCols()));
refreshConditionsPanelEvent.fire(new RefreshConditionsPanelEvent(this, model.getConditions()));
refreshActionsPanelEvent.fire(new RefreshActionsPanelEvent(this, model.getActionCols()));
}
use of org.drools.workbench.screens.guided.dtable.client.widget.table.events.cdi.RefreshMetaDataPanelEvent in project drools-wb by kiegroup.
the class ColumnsPagePresenterTest method testOnRefreshMetaDataPanelEvent.
@Test
public void testOnRefreshMetaDataPanelEvent() {
final RefreshMetaDataPanelEvent event = mock(RefreshMetaDataPanelEvent.class);
final GuidedDecisionTableView.Presenter eventPresenter = mock(GuidedDecisionTableView.Presenter.class);
final List<MetadataCol52> columns = new ArrayList<>();
doReturn(eventPresenter).when(event).getPresenter();
doReturn(columns).when(event).getColumns();
doNothing().when(presenter).refreshMetaDataWidget(any());
doNothing().when(presenter).refreshColumnsNoteInfo(any());
presenter.onRefreshMetaDataPanelEvent(event);
verify(presenter).refreshMetaDataWidget(columns);
verify(presenter).refreshColumnsNoteInfo(eventPresenter);
}
use of org.drools.workbench.screens.guided.dtable.client.widget.table.events.cdi.RefreshMetaDataPanelEvent in project drools-wb by kiegroup.
the class GuidedDecisionTablePresenterAttributesAndMetadataTest method appendMetadataColumn.
@Test
public void appendMetadataColumn() throws VetoException {
reset(modellerPresenter);
final MetadataCol52 column = new MetadataCol52();
column.setMetadata("metadata");
dtPresenter.appendColumn(column);
verify(synchronizer, times(1)).appendColumn(eq(column));
verify(refreshMetaDataPanelEvent, times(1)).fire(any(RefreshMetaDataPanelEvent.class));
verify(modellerPresenter, times(1)).updateLinks();
}
Aggregations