use of org.mifos.test.acceptance.framework.loanproduct.multicurrrency.DefineNewDifferentCurrencyLoanProductPage.SubmitMultiCurrencyFormParameters in project head by mifos.
the class LoanProcessWithDifferentCurrencyTest method createWeeklyLoanProduct.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private // one of the dependent methods throws Exception
void createWeeklyLoanProduct() throws Exception {
SubmitMultiCurrencyFormParameters formParameters = getWeeklyLoanProductParameters();
AdminPage adminPage = navigationHelper.navigateToAdminPage();
adminPage.defineMultiCurrencyLoanProduct(formParameters);
}
use of org.mifos.test.acceptance.framework.loanproduct.multicurrrency.DefineNewDifferentCurrencyLoanProductPage.SubmitMultiCurrencyFormParameters in project head by mifos.
the class LoanProcessWithDifferentCurrencyTest method getWeeklyLoanProductParameters.
private SubmitMultiCurrencyFormParameters getWeeklyLoanProductParameters() {
SubmitMultiCurrencyFormParameters formParameters = new SubmitMultiCurrencyFormParameters();
formParameters.setOfferingName("Loan With Different Currency");
formParameters.setOfferingShortName("DC" + StringUtil.getRandomString(2));
formParameters.setDescription("descriptionForWeekly1");
formParameters.setCategory("Other");
formParameters.setApplicableFor(SubmitFormParameters.CLIENTS);
formParameters.setMinLoanAmount("1000");
formParameters.setMaxLoanAmount("19000");
formParameters.setDefaultLoanAmount("2500");
formParameters.setInterestTypes(SubmitFormParameters.DECLINING_BALANCE);
formParameters.setMaxInterestRate("10");
formParameters.setMinInterestRate("6");
formParameters.setDefaultInterestRate("9");
formParameters.setFreqOfInstallments(SubmitFormParameters.WEEKS);
formParameters.setMaxInstallments("10");
formParameters.setDefInstallments("5");
formParameters.setGracePeriodType(SubmitFormParameters.NONE);
formParameters.setInterestGLCode("31102 - Penalty");
formParameters.setPrincipalGLCode("1506 - Managed WFLoan");
formParameters.setCurrencyId(Short.valueOf("1"));
String fee = "USDfee";
formParameters.setAdditionalFee1(fee);
return formParameters;
}
Aggregations