Search in sources :

Example 11 with LoanProductTestHelper

use of org.mifos.test.acceptance.loanproduct.LoanProductTestHelper in project head by mifos.

the class CreateMultipleLoanAccountTest method setUp.

@Override
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    officeHelper = new OfficeHelper(selenium);
    userHelper = new UserHelper(selenium);
    centerTestHelper = new CenterTestHelper(selenium);
    navigationHelper = new NavigationHelper(selenium);
    loanProductTestHelper = new LoanProductTestHelper(selenium);
}
Also used : OfficeHelper(org.mifos.test.acceptance.framework.testhelpers.OfficeHelper) NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) UserHelper(org.mifos.test.acceptance.framework.testhelpers.UserHelper) LoanProductTestHelper(org.mifos.test.acceptance.loanproduct.LoanProductTestHelper) CenterTestHelper(org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 12 with LoanProductTestHelper

use of org.mifos.test.acceptance.loanproduct.LoanProductTestHelper in project head by mifos.

the class LoanImportTest method setUp.

@Override
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    loanProductTestHelper = new LoanProductTestHelper(selenium);
    adminTestHelper = new AdminTestHelper(selenium);
    navigationHelper = new NavigationHelper(selenium);
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) LoanProductTestHelper(org.mifos.test.acceptance.loanproduct.LoanProductTestHelper) AdminTestHelper(org.mifos.test.acceptance.framework.testhelpers.AdminTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 13 with LoanProductTestHelper

use of org.mifos.test.acceptance.loanproduct.LoanProductTestHelper in project head by mifos.

the class MonthClosingTest method setUp.

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

Example 14 with LoanProductTestHelper

use of org.mifos.test.acceptance.loanproduct.LoanProductTestHelper in project head by mifos.

the class QuestionGroupLoanAccountTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    questionGroupTestHelper = new QuestionGroupTestHelper(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    loanProductTestHelper = new LoanProductTestHelper(selenium);
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    DateTime targetTime = new DateTime(2011, 2, 24, 15, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
}
Also used : QuestionGroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper) LoanProductTestHelper(org.mifos.test.acceptance.loanproduct.LoanProductTestHelper) DateTimeUpdaterRemoteTestingService(org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) DateTime(org.joda.time.DateTime) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 15 with LoanProductTestHelper

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

Aggregations

LoanProductTestHelper (org.mifos.test.acceptance.loanproduct.LoanProductTestHelper)15 BeforeMethod (org.testng.annotations.BeforeMethod)14 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)13 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)12 DateTime (org.joda.time.DateTime)10 TestDataSetup (org.mifos.test.acceptance.util.TestDataSetup)7 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)5 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)3 CustomPropertiesHelper (org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper)2 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)2 Random (java.util.Random)1 AdminTestHelper (org.mifos.test.acceptance.framework.testhelpers.AdminTestHelper)1 CenterTestHelper (org.mifos.test.acceptance.framework.testhelpers.CenterTestHelper)1 OfficeHelper (org.mifos.test.acceptance.framework.testhelpers.OfficeHelper)1 UserHelper (org.mifos.test.acceptance.framework.testhelpers.UserHelper)1