TaskAdminListPresenter extends AbstractTaskListPresenter<TaskAdminListViewImpl> { @Override protected Predicate<TaskSummary> getSuspendActionCondition() { return task -> { TaskStatus taskStatus = task.getTaskStatus(); return (taskStatus.equals(TASK_STATUS_RESERVED) || taskStatus.equals(TASK_STATUS_IN_PROGRESS) || taskStatus.equals(TASK_STATUS_READY)); }; }  @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); @Override void createListBreadcrumb(); @Override void setupDetailBreadcrumb(String detailLabel); @Inject void setFilterSettingsManager(final TaskAdminListFilterSettingsManager filterSettingsManager);  }
@Test public void testSuspendActionCondition() { testTaskStatusCondition(getPresenter().getSuspendActionCondition(), TASK_STATUS_RESERVED.getIdentifier(), TASK_STATUS_IN_PROGRESS.getIdentifier(), TASK_STATUS_READY.getIdentifier()); }