List<CaseDefinition> caseDefinitions = new ArrayList<CaseDefinition>();
CaseDefinition mockCaseDefinition = MockProvider.createMockCaseDefinition();
caseDefinitions.add(mockCaseDefinition);
CaseDefinitionQuery mockCaseDefinitionQuery = mock(CaseDefinitionQuery.class);
when(mockCaseDefinitionQuery.list()).thenReturn(caseDefinitions);
when(mockRepoService.createCaseDefinitionQuery()).thenReturn(mockCaseDefinitionQuery);
}
private void createCaseInstanceMock() {
List<CaseInstance> caseInstances = new ArrayList<CaseInstance>();