private void createHistoricTaskInstanceMock() {
List<HistoricTaskInstance> tasks = MockProvider.createMockHistoricTaskInstances();
HistoricTaskInstanceQuery query = mock(HistoricTaskInstanceQuery.class);
when(mockHistoryService.createHistoricTaskInstanceQuery()).thenReturn(query);
when(query.list()).thenReturn(tasks);
}
private void createHistoricIncidentMock() {
HistoricIncidentQuery mockHistoricIncidentQuery = mock(HistoricIncidentQuery.class);
List<HistoricIncident> historicIncidents = MockProvider.createMockHistoricIncidents();