Search in sources :

Example 1 with DivideGroupChargesPage

use of org.mifos.test.acceptance.framework.loan.DivideGroupChargesPage in project head by mifos.

the class LoanTestHelper method applyChargeToGroupLoan.

/**
     * Applies a charge to the group loan account with id <tt>loanId</tt>.  
     * @param loanId The account id.
     * @param params The charge parameters (amount, type and list of amounts for member accounts).
     * @return The loan account page for the group loan account.
     */
public LoanAccountPage applyChargeToGroupLoan(String loanId, ChargeParameters params) {
    LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
    ApplyChargePage applyChargePage = loanAccountPage.navigateToApplyCharge();
    DivideGroupChargesPage divideGroupChargesPage = applyChargePage.submitAndNavigateToDivideGroupChargesPage(params);
    loanAccountPage = divideGroupChargesPage.submitAndNavigateToLoanAccountPage(params);
    return loanAccountPage;
}
Also used : ApplyChargePage(org.mifos.test.acceptance.framework.loan.ApplyChargePage) LoanAccountPage(org.mifos.test.acceptance.framework.loan.LoanAccountPage) EditPreviewLoanAccountPage(org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage) DivideGroupChargesPage(org.mifos.test.acceptance.framework.loan.DivideGroupChargesPage)

Aggregations

ApplyChargePage (org.mifos.test.acceptance.framework.loan.ApplyChargePage)1 DivideGroupChargesPage (org.mifos.test.acceptance.framework.loan.DivideGroupChargesPage)1 EditPreviewLoanAccountPage (org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage)1 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)1