Search in sources :

Example 1 with SubObjectCodeService

use of org.kuali.kfs.coa.service.SubObjectCodeService in project cu-kfs by CU-CommunityApps.

the class AwsAccountingXmlDocumentAccountingLineServiceImplTest method buildMockSubObjectCodeService.

private SubObjectCodeService buildMockSubObjectCodeService() {
    SubObjectCodeService subObjectCodeService = mock(SubObjectCodeService.class);
    SubObjectCode mockedSubObjectCode = createMockSubObjectCode(SubObjectCodeFixture.SO_109);
    when(subObjectCodeService.getByPrimaryIdForCurrentYear(CuFPTestConstants.TEST_AWS_BILLING_DEFAULT_CHART_CODE, CuFPTestConstants.TEST_ACCOUNT_NUMBER_1023715, CuFPTestConstants.TEST_OBJ_CODE_4020, CuFPTestConstants.TEST_SUB_OBJ_CODE_109)).thenReturn(mockedSubObjectCode);
    when(subObjectCodeService.getByPrimaryIdForCurrentYear(CuFPTestConstants.TEST_AWS_BILLING_DEFAULT_CHART_CODE, CuFPTestConstants.TEST_ACCOUNT_NUMBER_1023715, CuFPTestConstants.TEST_OBJ_CODE_4020, CuFPTestConstants.TEST_SUB_OBJ_CODE_10X)).thenReturn(null);
    return subObjectCodeService;
}
Also used : SubObjectCodeService(org.kuali.kfs.coa.service.SubObjectCodeService) SubObjectCode(org.kuali.kfs.coa.businessobject.SubObjectCode)

Aggregations

SubObjectCode (org.kuali.kfs.coa.businessobject.SubObjectCode)1 SubObjectCodeService (org.kuali.kfs.coa.service.SubObjectCodeService)1