ServiceTasksRepositoryListPresenter { protected String getRemoveTaskSuccess(String serviceTaskName) { return constants.RemoveTaskSuccess(serviceTaskName); } ServiceTasksRepositoryListPresenter(); @Inject  ServiceTasksRepositoryListPresenter(final Event<NotificationEvent> notificationEvent, final ServiceTasksRepositoryListView view,
                                               final Caller<ServiceTaskService> serviceTaskService, final SyncBeanManager iocManager); @WorkbenchPartTitle String getTitle(); @PostConstruct void init(); @WorkbenchPartView ServiceTasksRepositoryListView getView(); @Inject void setConfirmPopup(final ConfirmPopup confirmPopup); @Inject void setCannotRemovePopup(final AlertPopupView cannotRemovePopup); void enableService(String id); void disableService(String id); void openUploadDialog(); void openRemoveServiceTaskConfirmPopup(ServiceTaskSummary serviceTaskSummary); static final String SCREEN_ID; }
@Test public void openRemoveServiceTaskConfirmPopupWhenCanRemoveWithNotification() { when(serviceTaskService.removeServiceTask(any())).thenReturn(TEST_ST_NAME); verifyConfirmPopup(); verify(notificationEvent).fire(new NotificationEvent(presenter.getRemoveTaskSuccess(TEST_ST_NAME))); }