use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class LoanTestHelper method applyChargeUsingFeeLabel.
/**
* Applies a charge to the loan account with id <tt>loanId</tt>. Uses the fee label
* rather than type value to select the fee.
* @param loanId The account id.
* @param params The charge parameters (amount and type).
* @return The loan account page for the loan account.
*/
public LoanAccountPage applyChargeUsingFeeLabel(String loanId, ChargeParameters params) {
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
ApplyChargePage applyChargePage = loanAccountPage.navigateToApplyCharge();
loanAccountPage = applyChargePage.submitUsingLabelAndNavigateToApplyChargeConfirmationPage(params);
return loanAccountPage;
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class LoanTestHelper method verifyOriginalValues.
public void verifyOriginalValues(CreateLoanAccountSearchParameters searchParams, String principal, String interest, String fees, String penalty, String total) {
LoanAccountPage loanAccountPage = navigateToLoanAccountPage(searchParams);
loanAccountPage.verifyPrincipalOriginal(principal);
loanAccountPage.verifyInterestOriginal(interest);
loanAccountPage.verifyFeesOriginal(fees);
loanAccountPage.verifyPenaltyOriginal(penalty);
loanAccountPage.verifyTotalOriginalLoan(total);
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class NavigationHelper method navigateToLoanAccountPage.
public LoanAccountPage navigateToLoanAccountPage(String loanAccountID) {
HomePage homePage = navigateToHomePage();
SearchResultsPage searchResultsPage = homePage.search(loanAccountID);
searchResultsPage.verifyPage();
LoanAccountPage loanAccountPage = searchResultsPage.navigateToLoanAccountDetailPage(loanAccountID);
return loanAccountPage;
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class HolidayTest method holidaysRepaymentRuleSameDayWithBatchJobs.
//http://mifosforge.jira.com/browse/MIFOSTEST-74
@Test(enabled = true)
public void holidaysRepaymentRuleSameDayWithBatchJobs() throws Exception {
//Given
dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2035, 1, 1, 13, 0, 0, 0));
//When
CreateLoanAccountSearchParameters searchParameters = setSearchParameters();
CreateLoanAccountSubmitParameters submitAccountParameters = setSubmitParameters();
LoanAccountPage page = loanTestHelper.createLoanAccount(searchParameters, submitAccountParameters);
String lid = page.getAccountId();
page.navigateToRepaymentSchedulePage();
loanTestHelper.verifyRepaymentScheduleForHolidays("12-Jan-2035", "19-Jan-2035", "26-Jan-2035", "02-Feb-2035", "09-Feb-2035", "16-Feb-2035", "23-Feb-2035", "02-Mar-2035", "09-Mar-2035", "16-Mar-2035");
CreateHolidaySubmitParameters param = getHolidayParameters("2035");
param.setRepaymentRule(CreateHolidaySubmitParameters.SAME_DAY);
createHolidayForInstallments(param);
//Then
runBatchJobsForHoliday();
navigationHelper.navigateToLoanAccountPage(lid).navigateToRepaymentSchedulePage();
loanTestHelper.verifyRepaymentScheduleForHolidays("12-Jan-2035", "19-Jan-2035", "26-Jan-2035", "02-Feb-2035", "09-Feb-2035", "16-Feb-2035", "23-Feb-2035", "02-Mar-2035", "09-Mar-2035", "16-Mar-2035");
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class HolidayTest method holidaysRepaymentRuleNextWorkingDayWithBatchJobs.
//http://mifosforge.jira.com/browse/MIFOSTEST-76
@Test(enabled = true)
public void holidaysRepaymentRuleNextWorkingDayWithBatchJobs() throws Exception {
//Given
dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2036, 1, 1, 13, 0, 0, 0));
//When
CreateLoanAccountSearchParameters searchParameters = setSearchParameters();
CreateLoanAccountSubmitParameters submitAccountParameters = setSubmitParameters();
LoanAccountPage page = loanTestHelper.createLoanAccount(searchParameters, submitAccountParameters);
String lid = page.getAccountId();
page.navigateToRepaymentSchedulePage();
loanTestHelper.verifyRepaymentScheduleForHolidays("11-Jan-2036", "18-Jan-2036", "25-Jan-2036", "01-Feb-2036", "08-Feb-2036", "15-Feb-2036", "22-Feb-2036", "29-Feb-2036", "07-Mar-2036", "14-Mar-2036");
CreateHolidaySubmitParameters param = getHolidayParameters("2036");
param.setRepaymentRule(CreateHolidaySubmitParameters.NEXT_WORKING_DAY);
createHolidayForInstallments(param);
//Then
runBatchJobsForHoliday();
navigationHelper.navigateToLoanAccountPage(lid).navigateToRepaymentSchedulePage();
loanTestHelper.verifyRepaymentScheduleForHolidays("11-Jan-2036", "18-Jan-2036", "25-Jan-2036", "01-Feb-2036", "08-Feb-2036", "29-Feb-2036", "29-Feb-2036", "29-Feb-2036", "07-Mar-2036", "14-Mar-2036");
}
Aggregations