Search in sources :

Example 6 with TestDataSetup

use of org.mifos.test.acceptance.util.TestDataSetup in project head by mifos.

the class DecliningPrincipleLoanTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    navigationHelper = new NavigationHelper(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    propertiesHelper = new CustomPropertiesHelper(selenium);
    loanProductTestHelper = new LoanProductTestHelper(selenium);
    systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
    TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
    loanTestHelper.setApplicationTime(systemDateTime);
    dataSetup.addDecliningPrincipalBalance();
}
Also used : TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) LoanProductTestHelper(org.mifos.test.acceptance.loanproduct.LoanProductTestHelper) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) DateTime(org.joda.time.DateTime) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 7 with TestDataSetup

use of org.mifos.test.acceptance.util.TestDataSetup 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)

Example 8 with TestDataSetup

use of org.mifos.test.acceptance.util.TestDataSetup in project head by mifos.

the class VariableInstalmentLoanProductTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    loanProductTestHelper = new LoanProductTestHelper(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
    loanTestHelper.setApplicationTime(systemDateTime);
    TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
    dataSetup.addDecliningPrincipalBalance();
    feeTestHelper = new FeeTestHelper(dataSetup, new NavigationHelper(selenium));
}
Also used : TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) DateTime(org.joda.time.DateTime) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 9 with TestDataSetup

use of org.mifos.test.acceptance.util.TestDataSetup in project head by mifos.

the class ViewOriginalLoanScheduleTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    if (isSetUpDone) {
        systemDateTime = new DateTime(2011, 10, 10, 10, 0, 0, 0);
        loanTestHelper.setApplicationTime(systemDateTime);
        return;
    }
    loanProductTestHelper = new LoanProductTestHelper(selenium);
    navigationHelper = new NavigationHelper(selenium);
    systemDateTime = new DateTime(2010, 10, 11, 10, 0, 0, 0);
    loanTestHelper = new LoanTestHelper(selenium);
    loanTestHelper.setApplicationTime(systemDateTime);
    TestDataSetup dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
    dataSetup.createBranch(OfficeParameters.BRANCH_OFFICE, officeName, "Off");
    dataSetup.createUser(userLoginName, userName, officeName);
    dataSetup.createClient(clientName, officeName, userName);
    systemDateTime = new DateTime(2011, 10, 10, 10, 0, 0, 0);
    loanTestHelper.setApplicationTime(systemDateTime);
    createHolidays(dataSetup);
    new FeeTestHelper(dataSetup, new NavigationHelper(selenium)).createPeriodicFee(feeName, FeesCreatePage.SubmitFormParameters.LOAN, FeesCreatePage.SubmitFormParameters.WEEKLY_FEE_RECURRENCE, 1, 100);
    isSetUpDone = true;
}
Also used : TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) LoanProductTestHelper(org.mifos.test.acceptance.loanproduct.LoanProductTestHelper) DateTime(org.joda.time.DateTime) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 10 with TestDataSetup

use of org.mifos.test.acceptance.util.TestDataSetup in project head by mifos.

the class FeeTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    DateTime targetTime = new DateTime(2009, 7, 11, 12, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
    dataSetup = new TestDataSetup(selenium, applicationDatabaseOperation);
    loanTestHelper = new LoanTestHelper(selenium);
    feeTestHelper = new FeeTestHelper(dataSetup, new NavigationHelper(selenium));
    navigationHelper = new NavigationHelper(selenium);
    loanProductTestHelper = new LoanProductTestHelper(selenium);
}
Also used : TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) LoanProductTestHelper(org.mifos.test.acceptance.loanproduct.LoanProductTestHelper) 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

LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)10 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)10 TestDataSetup (org.mifos.test.acceptance.util.TestDataSetup)10 DateTime (org.joda.time.DateTime)9 BeforeMethod (org.testng.annotations.BeforeMethod)9 LoanProductTestHelper (org.mifos.test.acceptance.loanproduct.LoanProductTestHelper)7 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)6 CustomPropertiesHelper (org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper)2 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)2 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)2 Random (java.util.Random)1 ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)1 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)1 SavingsAccountHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsAccountHelper)1 SavingsProductHelper (org.mifos.test.acceptance.framework.testhelpers.SavingsProductHelper)1