use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.
the class ModifyingGroupLoanTest method setUp.
@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
loanTestHelper = new LoanTestHelper(selenium);
customPropertiesHelper = new CustomPropertiesHelper(selenium);
customPropertiesHelper.setNewGroupLoanWithMembers(true);
}
use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.
the class RedoNewGlimLoanDisbursalTest method setUp.
@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
navigationHelper = new NavigationHelper(selenium);
customPropertiesHelper = new CustomPropertiesHelper(selenium);
customPropertiesHelper.setNewGroupLoanWithMembers(true);
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
DateTime targetTime = new DateTime(2011, 03, 15, 13, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
}
use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.
the class ClientTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
navigationHelper = new NavigationHelper(selenium);
propertiesHelper = new CustomPropertiesHelper(selenium);
clientTestHelper = new ClientTestHelper(selenium);
questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
groupTestHelper = new GroupTestHelper(selenium);
savingsAccountHelper = new SavingsAccountHelper(selenium);
savingsProductHelper = new SavingsProductHelper(selenium);
DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
targetTime = new DateTime(2009, 7, 11, 12, 0, 0, 0);
dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
feeTestHelper = new FeeTestHelper(dataSetup, navigationHelper);
loanTestHelper = new LoanTestHelper(selenium);
}
use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.
the class ViewOrganizationSettingsTest method verifyViewOrganizationSettingsPage.
@Test
public //http://mifosforge.jira.com/browse/MIFOSTEST-259
void verifyViewOrganizationSettingsPage() {
//When
AdminPage adminPage = loginAndGoToAdminPage();
ViewOrganizationSettingsPage viewOrganizationSettingsPage = adminPage.navigateToViewOrganizationSettingsPage();
viewOrganizationSettingsPage.verifyPage();
//Then
viewOrganizationSettingsPage.verifyDefaultConfiguration();
//When
CustomPropertiesHelper customPropertiesHelper = new CustomPropertiesHelper(selenium);
customPropertiesHelper.setDigitsAfterDecimal(3);
customPropertiesHelper.setGroupCanApplyLoans("false");
adminPage = loginAndGoToAdminPage();
viewOrganizationSettingsPage = adminPage.navigateToViewOrganizationSettingsPage();
//Then
viewOrganizationSettingsPage.verifyClientRules(new String[] { "Groups allowed to apply for loans: No" });
viewOrganizationSettingsPage.verifyCurrencies(new String[] { "Number of digits after decimal: 3" });
customPropertiesHelper.setDigitsAfterDecimal(1);
customPropertiesHelper.setGroupCanApplyLoans("true");
}
use of org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper in project head by mifos.
the class UpdateCustomPropertiesTest method setUp.
@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
navigationHelper = new NavigationHelper(selenium);
propertiesHelper = new CustomPropertiesHelper(selenium);
savingsAccountHelper = new SavingsAccountHelper(selenium);
centerTestHelper = new CenterTestHelper(selenium);
clientTestHelper = new ClientTestHelper(selenium);
super.setUp();
}
Aggregations