Search in sources :

Example 1 with TestDataSetup

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

the class VariableInstalmentRecalculationTest method setUp.

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

Example 2 with TestDataSetup

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

the class VariableInstalmentLoanTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    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);
    feeTestHelper = new FeeTestHelper(dataSetup, new NavigationHelper(selenium));
    applicationDatabaseOperation.updateLSIM(1);
}
Also used : TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) DateTime(org.joda.time.DateTime) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 3 with TestDataSetup

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

the class RedoLoanDisbursalTest method dataSetUpForVariableInstallmentLoan.

@SuppressWarnings("PMD.SignatureDeclareThrowsException")
private void dataSetUpForVariableInstallmentLoan() throws Exception {
    navigationHelper = new NavigationHelper(selenium);
    loanTestHelper = new LoanTestHelper(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) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) DateTime(org.joda.time.DateTime)

Example 4 with TestDataSetup

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

the class RolesAndPermissionTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_dbunit.xml", dataSource, selenium);
    navigationHelper = new NavigationHelper(selenium);
    loanTestHelper = new LoanTestHelper(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.createBranch(OfficeParameters.BRANCH_OFFICE, officeName, "Off");
    dataSetup.createUser(userLoginName, userName, officeName);
    dataSetup.createClient(clientName, officeName, userName);
    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) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) DateTime(org.joda.time.DateTime) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 5 with TestDataSetup

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

the class CreateClientLoanAccountTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    loanTestHelper = new LoanTestHelper(selenium);
    loanProductTestHelper = new LoanProductTestHelper(selenium);
    navigationHelper = new NavigationHelper(selenium);
    feeTestHelper = new FeeTestHelper(new TestDataSetup(selenium, applicationDatabaseOperation), navigationHelper);
    questionGroupHelper = new QuestionGroupHelper(navigationHelper);
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    random = new Random();
}
Also used : FeeTestHelper(org.mifos.test.acceptance.admin.FeeTestHelper) TestDataSetup(org.mifos.test.acceptance.util.TestDataSetup) QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) Random(java.util.Random) LoanProductTestHelper(org.mifos.test.acceptance.loanproduct.LoanProductTestHelper) 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