ColumnsPagePresenter { public void onRefreshAttributesPanelEvent(final @Observes RefreshAttributesPanelEvent event) { refreshAttributeWidget(event.getColumns()); refreshColumnsNoteInfo(event.getPresenter()); } @Inject  ColumnsPagePresenter(final View view,
                                final GuidedDecisionTableAccordion accordion,
                                final ManagedInstance<NewGuidedDecisionTableColumnWizard> wizardManagedInstance,
                                final TranslationService translationService,
                                final ManagedInstance<DeleteColumnManagementAnchorWidget> deleteColumnManagementAnchorWidgets,
                                final ManagedInstance<AttributeColumnConfigRow> attributeColumnConfigRow,
                                final ColumnManagementView conditionsPanel,
                                final ColumnManagementView actionsPanel,
                                final ShowRuleNameOptionPresenter showRuleNameOptionPresenter); @PostConstruct void setup(); View getView(); void init(final GuidedDecisionTableModellerView.Presenter modeller); void onUpdatedLockStatusEvent(final @Observes UpdatedLockStatusEvent event); void onRefreshAttributesPanelEvent(final @Observes RefreshAttributesPanelEvent event); void onRefreshMetaDataPanelEvent(final @Observes RefreshMetaDataPanelEvent event); void onRefreshConditionsPanelEvent(final @Observes RefreshConditionsPanelEvent event); void onRefreshActionsPanelEvent(final @Observes RefreshActionsPanelEvent event); GuidedDecisionTableAccordion getAccordion(); void onDecisionTableSelected(final @Observes DecisionTableSelectedEvent event); void refresh();  }
@Test public void testOnRefreshAttributesPanelEvent() { final RefreshAttributesPanelEvent event = mock(RefreshAttributesPanelEvent.class); final GuidedDecisionTableView.Presenter eventPresenter = mock(GuidedDecisionTableView.Presenter.class); final List<AttributeCol52> columns = new ArrayList<>(); doReturn(eventPresenter).when(event).getPresenter(); doReturn(columns).when(event).getColumns(); doNothing().when(presenter).refreshAttributeWidget(any()); doNothing().when(presenter).refreshColumnsNoteInfo(any()); presenter.onRefreshAttributesPanelEvent(event); verify(presenter).refreshAttributeWidget(columns); verify(presenter).refreshColumnsNoteInfo(eventPresenter); }