@Test public void testCancelCaseInstance() { final CaseInstanceSummary cis = caseInstanceSummaryList.remove(0); presenter.cancelCaseInstance(cis); verify(caseManagementService).cancelCaseInstance(cis.getContainerId(), cis.getCaseId()); verify(caseManagementService).getCaseInstances(any(CaseInstanceSearchRequest.class)); final ArgumentCaptor<List> captor = ArgumentCaptor.forClass(List.class); verify(view).setCaseInstanceList(captor.capture()); assertEquals(caseInstanceSummaryList.size(), captor.getValue().size()); }
protected void cancelCaseInstance(final CaseInstanceSummary caseInstanceSummary) { caseService.call( e -> refreshData() ).cancelCaseInstance(caseInstanceSummary.getContainerId(), caseInstanceSummary.getCaseId()); }
CaseInstanceListPresenter extends AbstractPresenter<CaseInstanceListPresenter.CaseInstanceListView> { protected void cancelCaseInstance(final CaseInstanceSummary caseInstanceSummary) { caseService.call( e -> refreshData() ).cancelCaseInstance(caseInstanceSummary.getContainerId(), caseInstanceSummary.getCaseId()); } }
CaseInstanceListPresenter extends AbstractPresenter<CaseInstanceListPresenter.CaseInstanceListView> { protected void cancelCaseInstance(final CaseInstanceSummary caseInstanceSummary) { caseService.call( e -> refreshData() ).cancelCaseInstance(caseInstanceSummary.getContainerId(), caseInstanceSummary.getCaseId()); }  }
CaseInstanceListPresenter extends AbstractPresenter<CaseInstanceListPresenter.CaseInstanceListView> { protected void cancelCaseInstance(final CaseInstanceSummary caseInstanceSummary) { caseService.call( e -> refreshData() ).cancelCaseInstance(caseInstanceSummary.getContainerId(), caseInstanceSummary.getCaseId()); }  @WorkbenchPartTitle String getTitle(); @Override void init(); void createCaseInstance(); void onCaseCreatedEvent(@Observes CaseCreatedEvent event); @Inject void setCaseService(final Caller<CaseManagementService> caseService); }
CaseInstanceListPresenter extends AbstractPresenter<CaseInstanceListPresenter.CaseInstanceListView> { protected void cancelCaseInstance(final CaseInstanceSummary caseInstanceSummary) { caseService.call( e -> refreshData() ).cancelCaseInstance(caseInstanceSummary.getContainerId(), caseInstanceSummary.getCaseId()); }  @WorkbenchPartTitle String getTitle(); @Override void init(); void createCaseInstance(); void onCaseCreatedEvent(@Observes CaseCreatedEvent event); @Inject void setCaseService(final Caller<CaseManagementService> caseService); static final String SCREEN_ID; }