ProcessDefinitionListPresenter extends AbstractMultiGridPresenter<ProcessSummary, ProcessDefinitionListPresenter.ProcessDefinitionListView> { boolean onRuntimeDataServiceError(final Throwable throwable) { setEmptyResults(); errorCallback.error(throwable); return false; } ProcessDefinitionListPresenter(); @Inject void setAuthorizationManager(final AuthorizationManager authorizationManager); @Inject void setProcessDefinitionListBasicFiltersPresenter(final ProcessDefinitionListBasicFiltersPresenter processDefinitionListBasicFiltersPresenter); @Override void setupActiveSearchFilters(); @Override boolean existActiveSearchFilters(); @Override void createListBreadcrumb(); void setupDetailBreadcrumb(String detailLabel); void openGenericForm(final String processDefId,
                                final String deploymentId,
                                final String processDefName,
                                final boolean isDynamic); @Inject void setFilterSettingsManager(final ProcessDefinitionListFilterSettingsManager filterSettingsManager); @WorkbenchMenu void getMenus(final Consumer<Menus> menusConsumer); void refreshNewProcessInstance(@Observes NewProcessInstanceEvent newProcessInstance); void refreshNewCaseInstance(@Observes NewCaseInstanceEvent newCaseInstance); Predicate<ProcessSummary> getViewProcessInstanceActionCondition(); Predicate<ProcessSummary> getStartCondition(); void viewProcessInstances(String processDefId); boolean isUserAuthorizedForPerspective(final String perspectiveId); @Inject void setProcessRuntimeDataService(final Caller<ProcessRuntimeDataService> processRuntimeDataService);  }
@Test public void testOnRuntimeDataServiceError() { final Throwable throwable = mock(Throwable.class); assertFalse(presenter.onRuntimeDataServiceError(throwable)); verify(presenter).updateDataOnCallback(emptyList(), 0, 0, true); verify(errorCallback).error(throwable); verify(view).hideBusyIndicator(); }