Search in sources :

Example 1 with SavingsAccountHelper

use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.

the class SavingsDepositTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    DateTime targetTime = new DateTime(2009, 9, 9, 8, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
    savingsAccountHelper = new SavingsAccountHelper(selenium);
}
Also used : SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) DateTime(org.joda.time.DateTime) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 2 with SavingsAccountHelper

use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.

the class SavingsPaymentTest method setUp.

@BeforeMethod(alwaysRun = true)
@SuppressWarnings("PMD")
public void setUp() throws Exception {
    super.setUp();
    navigationHelper = new NavigationHelper(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    savingsTestHelper = new SavingsAccountHelper(selenium);
    setupTime();
}
Also used : SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 3 with SavingsAccountHelper

use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.

the class QuestionGroupSavingsAccountTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    savingsAccountHelper = new SavingsAccountHelper(selenium);
    clientTestHelper = new ClientTestHelper(selenium);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 4 with SavingsAccountHelper

use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper in project head by mifos.

the class AdditionalSavingsAccountTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    dateTimeUpdaterRemoteTestingService.resetDateTime();
    savingsProductHelper = new SavingsProductHelper(selenium);
    savingsAccountHelper = new SavingsAccountHelper(selenium);
    navigationHelper = new NavigationHelper(selenium);
}
Also used : SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) SavingsProductHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsProductHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 5 with SavingsAccountHelper

use of org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper 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);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) SavingsAccountHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) ClientTestHelper(org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) SavingsProductHelper(org.mifos.test.acceptance.framework.testhelpers.SavingsProductHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) DateTime(org.joda.time.DateTime) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

SavingsAccountHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper)11 BeforeMethod (org.testng.annotations.BeforeMethod)10 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)6 DateTime (org.joda.time.DateTime)4 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)4 ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)3 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)3 SavingsProductHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsProductHelper)3 CustomPropertiesHelper (org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper)2 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)2 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)1 ImportTransactionsPage (org.mifos.test.acceptance.framework.admin.ImportTransactionsPage)1 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)1 TransactionHistoryPage (org.mifos.test.acceptance.framework.loan.TransactionHistoryPage)1 CenterTestHelper (org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper)1 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)1 TestDataSetup (org.mifos.test.acceptance.util.TestDataSetup)1 Test (org.testng.annotations.Test)1