mocks.add(createMockCaseInstance());
return mocks;
}
public static CaseInstance createMockCaseInstance() {
CaseInstance mock = mock(CaseInstance.class);
when(mock.getId()).thenReturn(EXAMPLE_CASE_INSTANCE_ID);
when(mock.getBusinessKey()).thenReturn(EXAMPLE_CASE_INSTANCE_BUSINESS_KEY);
when(mock.getCaseDefinitionId()).thenReturn(EXAMPLE_CASE_INSTANCE_CASE_DEFINITION_ID);
when(mock.isActive()).thenReturn(EXAMPLE_CASE_INSTANCE_IS_ACTIVE);
when(mock.isCompleted()).thenReturn(EXAMPLE_CASE_INSTANCE_IS_COMPLETED);
when(mock.isTerminated()).thenReturn(EXAMPLE_CASE_INSTANCE_IS_TERMINATED);
return mock;
}