@Test public void postConstructTest() { final List<Section<SpaceScreenModel>> sections = Arrays.asList(createSectionMock(), createSectionMock()); doReturn(sections).when(settingsSections).getList(); doReturn(promises.resolve()).when(presenter).setupUsingCurrentSection(); presenter.postConstruct(); verify(sectionManager).init(eq(sections), any(), any()); }
@PostConstruct public void postConstruct() { sectionManager.init(settingsSections.getList(), view.getMenuItemsContainer(), view.getContentContainer()); }
SettingsScreenPresenter implements HasBusyIndicator { @PostConstruct public void postConstruct() { sectionManager.init(settingsSections.getList(), view.getMenuItemsContainer(), view.getContentContainer()); } }
SettingsScreenPresenter implements HasBusyIndicator { @PostConstruct public void postConstruct() { sectionManager.init(settingsSections.getList(), view.getMenuItemsContainer(), view.getContentContainer()); } @Inject  SettingsScreenPresenter(final View view,
                                   final TranslationService ts,
                                   final OrganizationalUnitController organizationalUnitController,
                                   final WorkspaceProjectContext projectContext,
                                   final BusyIndicatorView busyIndicatorView,
                                   final SectionManager<SpaceScreenModel> sectionManager,
                                   final @SpaceSettings SettingsSections settingsSections,
                                   final Promises promises,
                                   final Event<NotificationEvent> notificationEvent); }
SettingsScreenPresenter implements HasBusyIndicator { @PostConstruct public void postConstruct() { sectionManager.init(settingsSections.getList(), view.getMenuItemsContainer(), view.getContentContainer()); } @Inject  SettingsScreenPresenter(final View view,
                                   final TranslationService ts,
                                   final OrganizationalUnitController organizationalUnitController,
                                   final WorkspaceProjectContext projectContext,
                                   final BusyIndicatorView busyIndicatorView,
                                   final SectionManager<SpaceScreenModel> sectionManager,
                                   final @SpaceSettings SettingsSections settingsSections,
                                   final Promises promises,
                                   final Event<NotificationEvent> notificationEvent); @PostConstruct void postConstruct(); Promise<Void> setupUsingCurrentSection(); View getView(); @Override void showBusyIndicator(final String message); @Override void hideBusyIndicator(); void onSettingsSectionChanged(@Observes final SettingsSectionChange<SpaceScreenModel> settingsSectionChange); void save(); void reset(); }
SettingsScreenPresenter implements HasBusyIndicator { @PostConstruct public void postConstruct() { sectionManager.init(settingsSections.getList(), view.getMenuItemsContainer(), view.getContentContainer()); } @Inject  SettingsScreenPresenter(final View view,
                                   final TranslationService ts,
                                   final OrganizationalUnitController organizationalUnitController,
                                   final WorkspaceProjectContext projectContext,
                                   final BusyIndicatorView busyIndicatorView,
                                   final SectionManager<SpaceScreenModel> sectionManager,
                                   final @SpaceSettings SettingsSections settingsSections,
                                   final Promises promises,
                                   final Event<NotificationEvent> notificationEvent); @PostConstruct void postConstruct(); Promise<Void> setupUsingCurrentSection(); View getView(); @Override void showBusyIndicator(final String message); @Override void hideBusyIndicator(); void onSettingsSectionChanged(@Observes final SettingsSectionChange<SpaceScreenModel> settingsSectionChange); void save(); void reset();  }