use of org.mifos.reports.business.service.IBranchReportService in project head by mifos.
the class BranchReportHelperIntegrationTest method testBatchCreatesRowForBranchReportBatchBO.
@Test
public void testBatchCreatesRowForBranchReportBatchBO() throws PersistenceException, ServiceException, BatchJobException {
branchReportHelper = new BranchReportHelper();
OfficeBO office = new OfficeBusinessService().getOffice(BRANCH_ID_SHORT);
BranchReportBO generatedBranchReport = branchReportHelper.createBranchReport(session, office, RUN_DATE);
IBranchReportService branchReportService = new BranchReportService();
BranchReportBO retrievedBranchReports = branchReportService.getBranchReport(BRANCH_ID_SHORT, RUN_DATE);
assertBranchReport(generatedBranchReport, retrievedBranchReports);
assertClientSummaryReport(generatedBranchReport.getClientSummaries(), branchReportService);
assertLoanArrearsAging(generatedBranchReport.getLoanArrearsAging(), branchReportService);
assertStaffSummary(generatedBranchReport.getStaffSummaries(), branchReportService);
assertStaffingLevelSummary(generatedBranchReport.getStaffingLevelSummaries(), branchReportService);
assertLoanDetails(generatedBranchReport.getLoanDetails(), branchReportService);
assertLoanArrearsProfile(generatedBranchReport.getLoanArrearsProfile(), branchReportService);
}
Aggregations