use of org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage in project head by mifos.
the class UpdateCustomPropertiesTest method verifyPropertySavingsPendingApprovalStateEnabled.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
//http://mifosforge.jira.com/browse/MIFOSTEST-216
@Test(enabled = true)
public void verifyPropertySavingsPendingApprovalStateEnabled() throws Exception {
//Given
propertiesHelper.setSavingsPendingApprovalStateEnabled("false");
//When
CreateSavingsAccountSearchParameters searchParameters = new CreateSavingsAccountSearchParameters();
searchParameters.setSearchString("UpdateCustomProperties TestClient");
searchParameters.setSavingsProduct("MandatorySavingsAccount");
CreateSavingsAccountSubmitParameters submitAccountParameters = new CreateSavingsAccountSubmitParameters();
submitAccountParameters.setAmount("248.0");
SavingsAccountDetailPage savingsAccountPage = savingsAccountHelper.createSavingsAccountWithoutPendingApprovalState(searchParameters, submitAccountParameters);
savingsAccountPage.verifyPage();
//Then
savingsAccountPage.verifySavingsAmount(submitAccountParameters.getAmount());
savingsAccountPage.verifySavingsProduct(searchParameters.getSavingsProduct());
savingsAccountPage.verifyStatus("Active");
propertiesHelper.setSavingsPendingApprovalStateEnabled("true");
}
Aggregations