Search in sources :

Example 1 with ProjectCodeService

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;
}
Also used : ProjectCode(org.kuali.kfs.coa.businessobject.ProjectCode) ProjectCodeService(org.kuali.kfs.coa.service.ProjectCodeService)

Aggregations

ProjectCode (org.kuali.kfs.coa.businessobject.ProjectCode)1 ProjectCodeService (org.kuali.kfs.coa.service.ProjectCodeService)1