use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.
the class CollectionSheetEntrySimpleTest method getFormParameters.
private SubmitFormParameters getFormParameters(String receiptDay, String transactionDay) {
SubmitFormParameters formParameters = new SubmitFormParameters();
formParameters.setBranch("branch1");
formParameters.setLoanOfficer("loanofficer branch1");
formParameters.setCenter("branch1 center");
formParameters.setPaymentMode("Cash");
formParameters.setReceiptDay(receiptDay);
formParameters.setReceiptMonth("11");
formParameters.setReceiptYear("2009");
formParameters.setTransactionDay(transactionDay);
formParameters.setTransactionMonth("02");
formParameters.setTransactionYear("2009");
return formParameters;
}
use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.
the class CollectionSheetEntryTest method twoLoansWithSameProductHasMergedLoanAmount.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void twoLoansWithSameProductHasMergedLoanAmount() throws Exception {
SubmitFormParameters formParameters = getFormParametersForTestOffice();
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
CollectionSheetEntryEnterDataPage enterDataPage = navigateToCollectionSheetEntryEnterData(formParameters);
//check amount due for client who has two loan accounts on the same product
enterDataPage.verifyLoanAmountValue(3, 0, 2088.0);
enterDataPage.cancel();
}
use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.
the class StandardReportsTest method generateCollectionSheetEntryReport.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void generateCollectionSheetEntryReport() throws Exception {
SubmitFormParameters formParameters = new SubmitFormParameters();
formParameters.setBranch("MyOfficeDHMFT");
formParameters.setLoanOfficer("ALL");
formParameters.setCenter("Default Center");
formParameters.setTransactionDay("23");
formParameters.setTransactionMonth("04");
formParameters.setTransactionYear("2009");
LoginPage loginPage = appLauncher.launchMifos();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
ReportsPage reportsPage = homePage.navigateToReportsPage();
CollectionSheetReportParametersPage collSheetReportParametersPage = reportsPage.selectCollectionSheetEntryReport();
collSheetReportParametersPage.generateCollectionSheetEntryReport(formParameters);
// TODO: No validation for now. This will simply demonstrate the problem if
// PDF generation is messed up (as it was when the itext library was removed)
// An attempt was made to validate by using the BIRT url to generate the PDF
// but following that url includes parameter dropdown screens before whatever
// call actually generates the PDF
}
use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.
the class CollectionSheetEntryInputErrorsTest method setFormParametersForTestOffice.
private SubmitFormParameters setFormParametersForTestOffice(String branch, String loanOfficer, String center, String paymentMode) {
SubmitFormParameters formParameters = new SubmitFormParameters();
formParameters.setBranch(branch);
formParameters.setLoanOfficer(loanOfficer);
formParameters.setCenter(center);
formParameters.setPaymentMode(paymentMode);
return formParameters;
}
use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage.SubmitFormParameters in project head by mifos.
the class CollectionSheetEntrySimpleTest method checkForValueObjectConversionErrorWhenEnteringInvalidDateIntoReceipt.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void checkForValueObjectConversionErrorWhenEnteringInvalidDateIntoReceipt() throws Exception {
SubmitFormParameters invalidFormParameters = getFormParametersWithInvalidReceiptDay();
SubmitFormParameters validFormParameters = getFormParameters();
checkForValueObjectConversionErrorWhenEnteringInvalidDate(invalidFormParameters, validFormParameters);
}
Aggregations