@Test public void postConstructTest() { doReturn(promises.resolve(true)) .when(projectController).canSubmitChangeRequest(workspaceProject); presenter.postConstruct(); verify(view).init(presenter); verify(view).enableSubmitChangeRequestButton(true); verify(view).setFilterTypes(anyListOf(SelectOption.class)); verify(view).clearList(); }
@PostConstruct public void postConstruct() { this.workspaceProject = this.libraryPlaces.getActiveWorkspace(); this.view.init(this); this.setupFilter(); projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { view.enableSubmitChangeRequestButton(userCanSubmitChangeRequest); return promises.resolve(); }); this.refreshList(); }
PopulatedChangeRequestListPresenter { @PostConstruct public void postConstruct() { this.workspaceProject = this.libraryPlaces.getActiveWorkspace(); this.view.init(this); this.setupFilter(); projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { view.enableSubmitChangeRequestButton(userCanSubmitChangeRequest); return promises.resolve(); }); this.refreshList(); } }
PopulatedChangeRequestListPresenter { @PostConstruct public void postConstruct() { this.workspaceProject = this.libraryPlaces.getActiveWorkspace(); this.view.init(this); this.setupFilter(); projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { view.enableSubmitChangeRequestButton(userCanSubmitChangeRequest); return promises.resolve(); }); this.refreshList(); } @Inject  PopulatedChangeRequestListPresenter(final View view,
                                               final ProjectController projectController,
                                               final LibraryPlaces libraryPlaces,
                                               final Promises promises,
                                               final EmptyState emptyState,
                                               final TranslationService ts,
                                               final ManagedInstance<ChangeRequestListItemView> changeRequestItemViews,
                                               final Caller<ChangeRequestService> changeRequestService,
                                               final BusyIndicatorView busyIndicatorView,
                                               final DateUtils dateUtils); }
PopulatedChangeRequestListPresenter { @PostConstruct public void postConstruct() { this.workspaceProject = this.libraryPlaces.getActiveWorkspace(); this.view.init(this); this.setupFilter(); projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { view.enableSubmitChangeRequestButton(userCanSubmitChangeRequest); return promises.resolve(); }); this.refreshList(); } @Inject  PopulatedChangeRequestListPresenter(final View view,
                                               final ProjectController projectController,
                                               final LibraryPlaces libraryPlaces,
                                               final Promises promises,
                                               final EmptyState emptyState,
                                               final TranslationService ts,
                                               final ManagedInstance<ChangeRequestListItemView> changeRequestItemViews,
                                               final Caller<ChangeRequestService> changeRequestService,
                                               final BusyIndicatorView busyIndicatorView,
                                               final DateUtils dateUtils); @PostConstruct void postConstruct(); View getView(); void onChangeRequestListUpdated(@Observes final ChangeRequestListUpdatedEvent event); void onChangeRequestUpdated(@Observes final ChangeRequestUpdatedEvent event); void onChangeRequestStatusUpdated(@Observes final ChangeRequestStatusUpdatedEvent event); void onRepositoryFileListUpdated(@Observes final RepositoryFileListUpdatedEvent event); void nextPage(); void prevPage(); void setCurrentPage(final int currentPage); void setFilterType(final String filterType); void submitChangeRequest(); void search(final String searchText); void showSearchHitNothing(); }
PopulatedChangeRequestListPresenter { @PostConstruct public void postConstruct() { this.workspaceProject = this.libraryPlaces.getActiveWorkspace(); this.view.init(this); this.setupFilter(); projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { view.enableSubmitChangeRequestButton(userCanSubmitChangeRequest); return promises.resolve(); }); this.refreshList(); } @Inject  PopulatedChangeRequestListPresenter(final View view,
                                               final ProjectController projectController,
                                               final LibraryPlaces libraryPlaces,
                                               final Promises promises,
                                               final EmptyState emptyState,
                                               final TranslationService ts,
                                               final ManagedInstance<ChangeRequestListItemView> changeRequestItemViews,
                                               final Caller<ChangeRequestService> changeRequestService,
                                               final BusyIndicatorView busyIndicatorView,
                                               final DateUtils dateUtils); @PostConstruct void postConstruct(); View getView(); void onChangeRequestListUpdated(@Observes final ChangeRequestListUpdatedEvent event); void onChangeRequestUpdated(@Observes final ChangeRequestUpdatedEvent event); void onChangeRequestStatusUpdated(@Observes final ChangeRequestStatusUpdatedEvent event); void onRepositoryFileListUpdated(@Observes final RepositoryFileListUpdatedEvent event); void nextPage(); void prevPage(); void setCurrentPage(final int currentPage); void setFilterType(final String filterType); void submitChangeRequest(); void search(final String searchText); void showSearchHitNothing();  }