use of org.mifos.test.acceptance.framework.loan.ViewRepaymentSchedulePage in project head by mifos.
the class PenaltyTest method verifyRepaymentSchelude.
private void verifyRepaymentSchelude(LoanAccountPage loanAccountPage, String penalty, String payment, String diff) {
DisburseLoanParameters disburseLoanParameters = new DisburseLoanParameters();
disburseLoanParameters.setPaymentType(DisburseLoanParameters.CASH);
loanAccountPage.navigateToDisburseLoan().submitAndNavigateToDisburseLoanConfirmationPage(disburseLoanParameters).submitAndNavigateToLoanAccountPage();
ViewRepaymentSchedulePage repaymentSchedulePage = loanAccountPage.navigateToRepaymentSchedulePage();
repaymentSchedulePage.verifyRepaymentScheduleTablePenalties(3, penalty);
ApplyPaymentPage paymentPage = repaymentSchedulePage.navigateToApplyPaymentPage();
PaymentParameters paymentParameters = new PaymentParameters();
paymentParameters.setTransactionDateDD("28");
paymentParameters.setTransactionDateMM("02");
paymentParameters.setTransactionDateYYYY("2011");
paymentParameters.setAmount(payment);
paymentParameters.setPaymentType(PaymentParameters.CASH);
paymentPage.submitAndNavigateToApplyPaymentConfirmationPage(paymentParameters).submitAndNavigateToLoanAccountDetailsPage().navigateToRepaymentSchedulePage();
repaymentSchedulePage.verifyRepaymentScheduleTableRow(3, 6, payment);
repaymentSchedulePage.verifyRepaymentScheduleTableRow(3, 8, payment);
repaymentSchedulePage.verifyRepaymentScheduleTableRow(5, 6, diff);
repaymentSchedulePage.verifyRunningBalanceTableRow(3, 3, diff);
ApplyAdjustmentPage adjustmentPage = repaymentSchedulePage.navigateToApplyAdjustment();
adjustmentPage.fillAdjustmentFieldsAndSubmit(payment).navigateToRepaymentSchedulePage();
repaymentSchedulePage.verifyRepaymentScheduleTablePenalties(3, penalty);
}
Aggregations