CaseOverviewPresenter extends AbstractCaseInstancePresenter<CaseOverviewPresenter.CaseOverviewView> { protected void refreshCase() { caseRefreshEvent.fire(new CaseRefreshEvent(caseId)); }  @WorkbenchPartTitle String getTitle(); @OnOpen void onOpen(); @Inject void setCaseCancelEvent(final Event<CaseCancelEvent> caseCancelEvent); @Inject void setCaseDestroyEvent(final Event<CaseClosedEvent> caseClosedEvent); @Inject void setCaseRefreshEvent(final Event<CaseRefreshEvent> caseRefreshEvent); static final String SCREEN_ID; }
@Test public void testRefreshCase() { final CaseInstanceSummary cis = setupCaseInstance(); presenter.refreshCase(); final ArgumentCaptor<CaseRefreshEvent> captor = ArgumentCaptor.forClass(CaseRefreshEvent.class); verify(caseRefreshEvent).fire(captor.capture()); assertEquals(cis.getCaseId(), captor.getValue().getCaseId()); }