@Test public void testInit() { final GuidedDecisionTableModellerView.Presenter modeller = mock(GuidedDecisionTableModellerView.Presenter.class); doNothing().when(presenter).setupAccordion(); doNothing().when(presenter).setupRuleInheritance(); doNothing().when(presenter).setupUseRuleNames(); doNothing().when(presenter).setupColumnsNoteInfo(modeller); doNothing().when(presenter).setupConditionsPanel(modeller); doNothing().when(presenter).setupActionsPanel(modeller); doCallRealMethod().when(presenter).getModeller(); presenter.init(modeller); verify(presenter).setupAccordion(); verify(presenter).setupRuleInheritance(); verify(presenter).setupColumnsNoteInfo(modeller); verify(presenter).setupConditionsPanel(modeller); verify(presenter).setupActionsPanel(modeller); assertEquals(modeller, presenter.getModeller()); }
public void init(final GuidedDecisionTableModellerView.Presenter modeller) { this.modeller = modeller; setupAccordion(); setupRuleInheritance(); setupUseRuleNames(); setupColumnsNoteInfo(modeller); setupConditionsPanel(modeller); setupActionsPanel(modeller); }
ColumnsPagePresenter { public void init(final GuidedDecisionTableModellerView.Presenter modeller) { this.modeller = modeller; setupAccordion(); setupRuleInheritance(); setupUseRuleNames(); setupColumnsNoteInfo(modeller); setupConditionsPanel(modeller); setupActionsPanel(modeller); } }
ColumnsPagePresenter { public void init(final GuidedDecisionTableModellerView.Presenter modeller) { this.modeller = modeller; setupAccordion(); setupRuleInheritance(); setupUseRuleNames(); setupColumnsNoteInfo(modeller); setupConditionsPanel(modeller); setupActionsPanel(modeller); } @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); }
ColumnsPagePresenter { public void init(final GuidedDecisionTableModellerView.Presenter modeller) { this.modeller = modeller; setupAccordion(); setupRuleInheritance(); setupUseRuleNames(); setupColumnsNoteInfo(modeller); setupConditionsPanel(modeller); setupActionsPanel(modeller); } @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(); }
ColumnsPagePresenter { public void init(final GuidedDecisionTableModellerView.Presenter modeller) { this.modeller = modeller; setupAccordion(); setupRuleInheritance(); setupUseRuleNames(); setupColumnsNoteInfo(modeller); setupConditionsPanel(modeller); setupActionsPanel(modeller); } @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();  }