use of org.kuali.kfs.coa.service.ProjectCodeService in project cu-kfs by CU-CommunityApps.
the class AwsAccountingXmlDocumentAccountingLineServiceImplTest method buildMockProjectCodeService.
private ProjectCodeService buildMockProjectCodeService() {
ProjectCodeService projectCodeService = mock(ProjectCodeService.class);
when(projectCodeService.getByPrimaryId(CuFPTestConstants.TEST_PROJECT_CODE_EB_PLGIFX)).thenReturn(null);
ProjectCode mockedProjectCode = createMockProjectCode(ProjectCodeFixture.PC_EB_PLGIFT);
when(projectCodeService.getByPrimaryId(CuFPTestConstants.TEST_PROJECT_CODE_EB_PLGIFT)).thenReturn(mockedProjectCode);
return projectCodeService;
}
Aggregations