Search in sources :

Example 1 with IBranchReportService

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);
}
Also used : OfficeBO(org.mifos.customers.office.business.OfficeBO) OfficeBusinessService(org.mifos.customers.office.business.service.OfficeBusinessService) BranchReportBO(org.mifos.reports.branchreport.BranchReportBO) IBranchReportService(org.mifos.reports.business.service.IBranchReportService) BranchReportService(org.mifos.reports.business.service.BranchReportService) IBranchReportService(org.mifos.reports.business.service.IBranchReportService) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 OfficeBO (org.mifos.customers.office.business.OfficeBO)1 OfficeBusinessService (org.mifos.customers.office.business.service.OfficeBusinessService)1 BranchReportBO (org.mifos.reports.branchreport.BranchReportBO)1 BranchReportService (org.mifos.reports.business.service.BranchReportService)1 IBranchReportService (org.mifos.reports.business.service.IBranchReportService)1