use of org.mifos.reports.branchreport.BranchReportBO in project head by mifos.
the class BranchReportServiceIntegrationTest method testGetStaffSummaryReportReturnsStaffSummaryForBranchAndDate.
@Test
public void testGetStaffSummaryReportReturnsStaffSummaryForBranchAndDate() throws Exception {
BranchReportBO branchReportWithStaffSummary = createBranchReportWithStaffSummary(BRANCH_ID_SHORT, RUN_DATE);
BranchReportBO otherBranchReportWithStaffSummary = createBranchReportWithStaffSummary(BRANCH_ID_SHORT, FIRST_JAN_2008);
session.save(branchReportWithStaffSummary);
session.save(otherBranchReportWithStaffSummary);
List<BranchReportStaffSummaryBO> retrievedStaffSummary = branchReportService.getStaffSummary(BRANCH_ID, RUN_DATE_STR);
Assert.assertEquals(1, retrievedStaffSummary.size());
assertSameCollections(branchReportWithStaffSummary.getStaffSummaries(), retrievedStaffSummary);
}
use of org.mifos.reports.branchreport.BranchReportBO in project head by mifos.
the class BranchReportPersistenceIntegrationTest method testRetrievesBranchReportsForGivenDate.
@Test
public void testRetrievesBranchReportsForGivenDate() throws Exception {
BranchReportBO branchReportBO = new BranchReportBO(BRANCH_ID, runDate);
session.save(branchReportBO);
List<BranchReportBO> retrievedBranchReports = branchReportPersistence.getBranchReport(runDate);
assertListSizeAndTrueCondition(1, retrievedBranchReports, PredicateUtils.equalPredicate(branchReportBO));
}
Aggregations