Search in sources :

Example 11 with LoanTestHelper

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

the class CreateLSIMClientLoanAccountTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    applicationDatabaseOperation.updateLSIM(1);
    navigationHelper = new NavigationHelper(selenium);
    loanTestHelper = new LoanTestHelper(selenium);
    loanProductTestHelper = new LoanProductTestHelper(selenium);
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    DateTime targetTime = new DateTime(2010, 1, 22, 10, 55, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) 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 12 with LoanTestHelper

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

the class ApplyAdjustmentGroupLoanTest method setUp.

@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    loanTestHelper = new LoanTestHelper(selenium);
    customPropertiesHelper = new CustomPropertiesHelper(selenium);
    customPropertiesHelper.setNewGroupLoanWithMembers(true);
}
Also used : CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) LoanTestHelper(org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 13 with LoanTestHelper

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

the class ApplyChargeGroupLoanTest method setUp.

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

Example 14 with LoanTestHelper

use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper 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 15 with LoanTestHelper

use of org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper 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)

Aggregations

LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)51 BeforeMethod (org.testng.annotations.BeforeMethod)38 DateTime (org.joda.time.DateTime)32 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)23 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)21 LoanProductTestHelper (org.mifos.test.acceptance.loanproduct.LoanProductTestHelper)12 CustomPropertiesHelper (org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper)10 TestDataSetup (org.mifos.test.acceptance.util.TestDataSetup)10 CreateLoanAccountEntryPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountEntryPage)7 FeeTestHelper (org.mifos.test.acceptance.admin.FeeTestHelper)6 MeetingParameters (org.mifos.test.acceptance.framework.center.MeetingParameters)6 CreateLoanAccountSearchParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters)6 QuestionGroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.QuestionGroupTestHelper)5 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)4 CreateLoanAccountSubmitParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSubmitParameters)4 ClientTestHelper (org.mifos.test.acceptance.framework.testhelpers.ClientTestHelper)4 Test (org.testng.annotations.Test)4 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)3 Random (java.util.Random)2 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)2