Search in sources :

Example 1 with ChartService

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

the class AwsAccountingXmlDocumentAccountingLineServiceImplTest method buildMockChartService.

private ChartService buildMockChartService() {
    ChartService chartService = mock(ChartService.class);
    Chart expectedChart = createMockChart(ChartFixture.CHART_IT);
    when(chartService.getByPrimaryId(CuFPTestConstants.TEST_AWS_BILLING_DEFAULT_CHART_CODE)).thenReturn(expectedChart);
    expectedChart = createMockChart(ChartFixture.CHART_CS);
    when(chartService.getByPrimaryId(CuFPTestConstants.TEST_AWS_BILLING_CHART_CODE_CS)).thenReturn(expectedChart);
    return chartService;
}
Also used : Chart(org.kuali.kfs.coa.businessobject.Chart) ChartService(org.kuali.kfs.coa.service.ChartService)

Aggregations

Chart (org.kuali.kfs.coa.businessobject.Chart)1 ChartService (org.kuali.kfs.coa.service.ChartService)1