use of org.mifos.reports.business.service.BranchReportService in project head by mifos.
the class BranchReportStaffSummaryHelperIntegrationTest method testPopulateStaffSummary.
@Test
public void testPopulateStaffSummary() throws BatchJobException {
BranchReportBO branchReportBO = new BranchReportBO(BRANCH_ID_SHORT, RUN_DATE);
BranchReportStaffSummaryHelper staffSummaryHelper = new BranchReportStaffSummaryHelper(branchReportBO, new BranchReportService(), getConfigServiceStub());
staffSummaryHelper.populateStaffSummary();
Set<BranchReportStaffSummaryBO> staffSummaries = branchReportBO.getStaffSummaries();
Assert.assertNotNull(staffSummaries);
}
use of org.mifos.reports.business.service.BranchReportService 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);
}
use of org.mifos.reports.business.service.BranchReportService in project head by mifos.
the class BranchReportStaffingLevelSummaryHelperIntegrationTest method testPopulateStaffingLevelSummary.
@Test
public void testPopulateStaffingLevelSummary() throws Exception {
BranchReportBO branchReport = BranchReportBOFixture.createBranchReport(Integer.valueOf(1), BRANCH_ID, DateUtils.currentDate());
new BranchReportStaffingLevelSummaryHelper(branchReport, new BranchReportService()).populateStaffingLevelSummary();
assertStaffingLevelSummaries(branchReport);
}
Aggregations