TaskListPresenter extends AbstractTaskListPresenter<TaskListViewImpl> { @Override protected Predicate<TaskSummary> getSuspendActionCondition() { return task -> TaskStatus.TASK_STATUS_RESERVED.equals(task.getTaskStatus()) || TaskStatus.TASK_STATUS_IN_PROGRESS.equals(task.getTaskStatus()); }  @WorkbenchPartTitle String getTitle(); @WorkbenchPartTitleDecoration IsWidget getTitleDecorator(); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @Override void createListBreadcrumb(); @Override void setupDetailBreadcrumb(String detailLabel); @Inject void setFilterSettingsManager(final TaskListFilterSettingsManager filterSettingsManager); Predicate<String> getFilterEventPredicate();  }
@Test public void testSuspendActionCondition() { testTaskStatusCondition(getPresenter().getSuspendActionCondition(), TASK_STATUS_RESERVED.getIdentifier(), TASK_STATUS_IN_PROGRESS.getIdentifier()); }