use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class ClientLoanStatusChangeTest method testBackDatedApprovals.
public void testBackDatedApprovals() {
customPropertiesHelper.setAllowBackdatedApproval(true);
LoanAccountPage loanAccountPage = loanTestHelper.createLoanAccount("Stu1233171716380 Client1233171716380", "WeeklyFlatLoanWithOneTimeFees");
loanAccountPage.verifyStatus("Application Pending Approval");
AccountChangeStatusPage changeStatusPage = loanAccountPage.navigateToEditAccountStatus();
LocalDate approvalDate = new LocalDate(2009, 6, 1);
EditAccountStatusParameters editAccountStatusParams = new EditAccountStatusParameters();
editAccountStatusParams.setNote("test note");
editAccountStatusParams.setAccountStatus(AccountStatus.LOAN_APPROVED);
editAccountStatusParams.setTrxnDate(approvalDate);
loanAccountPage = changeStatusPage.setChangeStatusParametersAndSubmit(editAccountStatusParams).submitAndNavigateToLoanAccountPage();
loanAccountPage.verifyStatus("Application Approved");
loanAccountPage.verifyLastNoteDate(approvalDate);
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class HolidayTest method holidaysRepaymentRuleWithBatchJobs.
//http://mifosforge.jira.com/browse/MIFOSTEST-75
@Test(enabled = true)
public void holidaysRepaymentRuleWithBatchJobs() throws Exception {
//Given
dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2034, 1, 1, 13, 0, 0, 0));
//When
CreateLoanAccountSearchParameters searchParameters = setSearchParameters();
CreateLoanAccountSubmitParameters submitAccountParameters = setSubmitParameters();
LoanAccountPage page = loanTestHelper.createLoanAccount(searchParameters, submitAccountParameters);
String loanId = page.getAccountId();
page.navigateToRepaymentSchedulePage();
loanTestHelper.verifyRepaymentScheduleForHolidays("13-Jan-2034", "20-Jan-2034", "27-Jan-2034", "03-Feb-2034", "10-Feb-2034", "17-Feb-2034", "24-Feb-2034", "03-Mar-2034", "10-Mar-2034", "17-Mar-2034");
createHolidayForInstallments(getHolidayParameters("2034"));
//Then
runBatchJobsForHoliday();
navigationHelper.navigateToLoanAccountPage(loanId).navigateToRepaymentSchedulePage();
loanTestHelper.verifyRepaymentScheduleForHolidays("13-Jan-2034", "20-Jan-2034", "27-Jan-2034", "03-Feb-2034", "10-Feb-2034", "03-Mar-2034", "03-Mar-2034", "03-Mar-2034", "10-Mar-2034", "17-Mar-2034");
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class UpdateCustomPropertiesTest method changeDigitsAfterDecimal.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
//http://mifosforge.jira.com/browse/MIFOSTEST-200
@Test
public void changeDigitsAfterDecimal() throws Exception {
propertiesHelper.setDigitsAfterDecimal(3);
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage("000100000000015");
loanAccountPage.verifyExactLoanAmount("1,000");
propertiesHelper.setDigitsAfterDecimal(2);
loanAccountPage = navigationHelper.navigateToLoanAccountPage("000100000000015");
loanAccountPage.verifyExactLoanAmount("1,000");
propertiesHelper.setDigitsAfterDecimal(0);
loanAccountPage = navigationHelper.navigateToLoanAccountPage("000100000000015");
loanAccountPage.verifyExactLoanAmount("1,000");
propertiesHelper.setDigitsAfterDecimal(1);
loanAccountPage = navigationHelper.navigateToLoanAccountPage("000100000000015");
loanAccountPage.verifyExactLoanAmount("1,000");
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class RemovePenaltiesTest method shouldRemovePenaltyWithoutPayment.
@Test(enabled = true)
public void shouldRemovePenaltyWithoutPayment() throws Exception {
final String accountId = setUpPenaltyAndLoanAccount(true, PenaltyFormParameters.FREQUENCY_WEEKLY);
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(accountId);
loanAccountPage.removePenalty(1);
loanAccountPage.verifyNoOneTimePenaltyRemovalLinkExists(1);
verifyCalculatePenaltyWithoutPenalty(accountId);
}
use of org.mifos.test.acceptance.framework.loan.LoanAccountPage in project head by mifos.
the class RemovePenaltiesTest method shouldRemovePenaltyBeforeDisbursal.
@Test(enabled = true)
public void shouldRemovePenaltyBeforeDisbursal() throws Exception {
final String accountId = setUpPenaltyAndLoanAccount(false, PenaltyFormParameters.FREQUENCY_NONE);
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(accountId);
loanAccountPage.removeOneTimePenalty(1);
loanAccountPage.verifyNoOneTimePenaltyRemovalLinkExists(1);
final DisburseLoanParameters disburseParams = new DisburseLoanParameters();
disburseParams.setAmount(loanAccountPage.getOriginalTotalAmount());
disburseParams.setDisbursalDateDD("15");
disburseParams.setDisbursalDateMM("2");
disburseParams.setDisbursalDateYYYY("2012");
disburseParams.setPaymentType(DisburseLoanParameters.CASH);
loanAccountPage.changeAccountStatusToAccepted().disburseLoan(disburseParams);
changeDateTime(04, 1);
verifyCalculatePenaltyWithoutPenalty(accountId);
}
Aggregations