return processDefinitionResults;
}
public static List<ActivityStatistics> createMockActivityStatistics() {
ActivityStatistics statistics = mock(ActivityStatistics.class);
when(statistics.getFailedJobs()).thenReturn(EXAMPLE_FAILED_JOBS);
when(statistics.getInstances()).thenReturn(EXAMPLE_INSTANCES);
when(statistics.getId()).thenReturn(EXAMPLE_ACTIVITY_ID);
IncidentStatistics incidentStaticits = mock(IncidentStatistics.class);
when(incidentStaticits.getIncidentType()).thenReturn(EXAMPLE_INCIDENT_TYPE);
when(incidentStaticits.getIncidentCount()).thenReturn(EXAMPLE_INCIDENT_COUNT);
List<IncidentStatistics> exampleIncidentList = new ArrayList<IncidentStatistics>();
exampleIncidentList.add(incidentStaticits);
when(statistics.getIncidentStatistics()).thenReturn(exampleIncidentList);
ActivityStatistics anotherStatistics = mock(ActivityStatistics.class);
when(anotherStatistics.getFailedJobs()).thenReturn(ANOTHER_EXAMPLE_FAILED_JOBS);
when(anotherStatistics.getInstances()).thenReturn(ANOTHER_EXAMPLE_INSTANCES);
when(anotherStatistics.getId()).thenReturn(ANOTHER_EXAMPLE_ACTIVITY_ID);
IncidentStatistics anotherIncidentStaticits = mock(IncidentStatistics.class);
when(anotherIncidentStaticits.getIncidentType()).thenReturn(ANOTHER_EXAMPLE_INCIDENT_TYPE);
when(anotherIncidentStaticits.getIncidentCount()).thenReturn(ANOTHER_EXAMPLE_INCIDENT_COUNT);
List<IncidentStatistics> anotherExampleIncidentList = new ArrayList<IncidentStatistics>();
anotherExampleIncidentList.add(anotherIncidentStaticits);
when(anotherStatistics.getIncidentStatistics()).thenReturn(anotherExampleIncidentList);
List<ActivityStatistics> activityResults = new ArrayList<ActivityStatistics>();
activityResults.add(statistics);
activityResults.add(anotherStatistics);