use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.
the class AdditionalSavingsAccountTest method getVoluntaryGroupsMonthCalculactionProductParameters.
private SavingsProductParameters getVoluntaryGroupsMonthCalculactionProductParameters(DateTime startDate) {
SavingsProductParameters params = savingsProductHelper.getGenericSavingsProductParameters(startDate, SavingsProductParameters.VOLUNTARY, SavingsProductParameters.GROUPS);
params.setMandatoryAmount("2000");
params.setInterestRate("5");
params.setDaysOrMonthsForInterestCalculation(params.MONTHS);
params.setFrequencyOfInterestPostings("1");
params.setNumberOfDaysOrMonthsForInterestCalculation("1");
params.setAmountAppliesTo(SavingsProductParameters.WHOLE_GROUP);
return params;
}
use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.
the class DefineNewSavingsProductTest method validateDefineSavingsProductForm.
public void validateDefineSavingsProductForm() throws Exception {
SavingsProductParameters params = savingsProductHelper.getInvalidSavingsProductParameters(new DateTime(), SavingsProductParameters.MANDATORY, SavingsProductParameters.GROUPS);
params.setShortName("V140");
DefineNewSavingsProductPage newSavingsProductPage = savingsProductHelper.getDefineSavingsProductPageWithValidationErrors(params);
newSavingsProductPage.verifyValidationErrors("Please specify the Time period for Interest calculation.", "Please specify the Frequency of Interest posting to accounts.", "Please specify the Interest rate. Interest must be in range (0-100).", "Please specify a value greater than zero for Mandatory amount for deposit.", "Please select the Amount Applies to.");
}
use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.
the class DefineNewSavingsProductTest method createVoluntarySavingsProductForCenters.
// http://mifosforge.jira.com/browse/MIFOSTEST-139
public void createVoluntarySavingsProductForCenters() throws Exception {
SavingsProductParameters params = savingsProductHelper.getGenericSavingsProductParameters(new DateTime(), SavingsProductParameters.VOLUNTARY, SavingsProductParameters.CENTERS);
params.setShortName("M139");
DefineNewSavingsProductConfirmationPage confirmationPage = savingsProductHelper.createSavingsProduct(params);
confirmationPage.navigateToSavingsProductDetails();
createSavingAccountWithCreatedProduct("DefineNewSavingsProductTestCenter", params.getProductInstanceName(), "7777.8");
}
use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.
the class DefineNewSavingsProductTest method createVoluntarySavingsProductForClients.
// http://mifosforge.jira.com/browse/MIFOSTEST-1093
public void createVoluntarySavingsProductForClients() throws Exception {
SavingsProductParameters params = savingsProductHelper.getGenericSavingsProductParameters(new DateTime(), SavingsProductParameters.VOLUNTARY, SavingsProductParameters.CLIENTS);
params.setShortName("1093");
DefineNewSavingsProductConfirmationPage confirmationPage = savingsProductHelper.createSavingsProduct(params);
confirmationPage.navigateToSavingsProductDetails();
createSavingAccountWithCreatedProduct("DefineNewSavingsProduct TestClient", params.getProductInstanceName(), "200");
}
use of org.mifos.test.acceptance.framework.savingsproduct.SavingsProductParameters in project head by mifos.
the class DefineNewSavingsProductTest method createSavingsProductWithDailyInterestPosting.
public void createSavingsProductWithDailyInterestPosting() throws Exception {
SavingsProductParameters params = savingsProductHelper.getMandatoryClientsMinimumBalanceSavingsProductParameters(new DateTime());
String productName = StringUtil.getRandomString(4);
params.setShortName(productName);
params.setDailyPosting(true);
DefineNewSavingsProductConfirmationPage confirmationPage = savingsProductHelper.createSavingsProduct(params);
confirmationPage.navigateToSavingsProductDetails();
createSavingAccountWithCreatedProduct("DefineNewSavingsProduct TestClient", params.getProductInstanceName(), "248");
}
Aggregations