use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class LoanTestHelper method verifyValidationErrorAppear.
public void verifyValidationErrorAppear() {
LoanAccountPage loanAccountPage = new LoanAccountPage(selenium);
loanAccountPage.verifyValidationErrorAppear();
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class LoanTestHelper method repayLoan.
public LoanAccountPage repayLoan(DateTime repaymentDate) throws UnsupportedEncodingException {
setApplicationTime(repaymentDate).navigateBack();
RepayLoanParameters params = setRepaymentParameters();
return new LoanAccountPage(selenium).navigateToRepayLoan().submitAndNavigateToRepayLoanConfirmationPage(params).submitAndNavigateToLoanAccountDetailsPage();
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class LoanTestHelper method removeOneTimeFee.
public void removeOneTimeFee(int feeIndex) {
LoanAccountPage loanAccountPage = new LoanAccountPage(selenium);
loanAccountPage.removeOneTimeFee(feeIndex);
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class LoanTestHelper method applyPayment.
/**
* Applies a payment to the loan account with id <tt>loanId</tt>.
* @param loanId The account id.
* @param paymentParams The payment parameters.
* @return The loan account page for the loan account.
*/
public LoanAccountPage applyPayment(String loanId, PaymentParameters paymentParams) {
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
ApplyPaymentPage applyPaymentPage = loanAccountPage.navigateToApplyPayment();
ApplyPaymentConfirmationPage applyPaymentConfirmationPage = applyPaymentPage.submitAndNavigateToApplyPaymentConfirmationPage(paymentParams);
loanAccountPage = applyPaymentConfirmationPage.submitAndNavigateToLoanAccountDetailsPage();
AccountActivityPage accountActivityPage = loanAccountPage.navigateToAccountActivityPage();
accountActivityPage.verifyLastTotalPaid(paymentParams.getAmount(), 2);
accountActivityPage.navigateBack();
return loanAccountPage;
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class LoanTestHelper method applyGroupIndividualClientPayment.
public LoanAccountPage applyGroupIndividualClientPayment(String loanId, PaymentParameters paymentParams) {
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
ApplyGroupPaymentPage applyGroupPaymentPage = loanAccountPage.navigateToApplyGroupPayment();
ApplyGroupPaymentConfirmationPage applyGroupPaymentConfirmationPage = applyGroupPaymentPage.submitAndNavigateToApplyGroupPaymentConfirmationPage(paymentParams, false);
loanAccountPage = applyGroupPaymentConfirmationPage.submitAndNavigateToLoanAccountDetailsPage();
return loanAccountPage;
}
Aggregations