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;
}
Aggregations