Search in sources :

Example 1 with BranchReportClientSummaryBatchBOExtractor

use of org.mifos.reports.branchreport.helper.BranchReportClientSummaryBatchBOExtractor in project head by mifos.

the class BranchReportClientSummaryHelperIntegrationTest method assertClientSummary.

private void assertClientSummary(BranchReportBO branchReport) throws PersistenceException {
    Assert.assertNotNull(branchReport.getBranchReportId());
    Set<BranchReportClientSummaryBO> branchReportClientSummaries = branchReport.getClientSummaries();
    Assert.assertNotNull(branchReportClientSummaries);
    Assert.assertEquals(12, branchReportClientSummaries.size());
    Predicate predicate = new BranchReportClientSummaryBatchBOExtractor().matchAllPredicates(branchReportClientSummaries);
    Assert.assertNull(predicate + " not found in summaries", predicate);
}
Also used : BranchReportClientSummaryBO(org.mifos.reports.branchreport.BranchReportClientSummaryBO) BranchReportClientSummaryBatchBOExtractor(org.mifos.reports.branchreport.helper.BranchReportClientSummaryBatchBOExtractor) Predicate(org.apache.commons.collections.Predicate)

Aggregations

Predicate (org.apache.commons.collections.Predicate)1 BranchReportClientSummaryBO (org.mifos.reports.branchreport.BranchReportClientSummaryBO)1 BranchReportClientSummaryBatchBOExtractor (org.mifos.reports.branchreport.helper.BranchReportClientSummaryBatchBOExtractor)1