@Test public void submitChangeRequestTest() { presenter.setFilterType("OPEN"); verify(view).clearSearch(); verify(changeRequestService).getChangeRequests(anyString(), anyString(), anyInt(), anyInt(), anyListOf(ChangeRequestStatus.class), anyString()); }
public void submitChangeRequest() { projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { if (Boolean.TRUE.equals(userCanSubmitChangeRequest)) { this.libraryPlaces.goToSubmitChangeRequestScreen(); } return promises.resolve(); }); }
PopulatedChangeRequestListPresenter { public void submitChangeRequest() { projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { if (Boolean.TRUE.equals(userCanSubmitChangeRequest)) { this.libraryPlaces.goToSubmitChangeRequestScreen(); } return promises.resolve(); }); } }
PopulatedChangeRequestListPresenter { public void submitChangeRequest() { projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { if (Boolean.TRUE.equals(userCanSubmitChangeRequest)) { this.libraryPlaces.goToSubmitChangeRequestScreen(); } return promises.resolve(); }); } @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 { public void submitChangeRequest() { projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { if (Boolean.TRUE.equals(userCanSubmitChangeRequest)) { this.libraryPlaces.goToSubmitChangeRequestScreen(); } return promises.resolve(); }); } @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 { public void submitChangeRequest() { projectController.canSubmitChangeRequest(workspaceProject).then(userCanSubmitChangeRequest -> { if (Boolean.TRUE.equals(userCanSubmitChangeRequest)) { this.libraryPlaces.goToSubmitChangeRequestScreen(); } return promises.resolve(); }); } @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();  }