Search in sources :

Example 6 with LoanProductTestHelper

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

the class LoanAccountCycleTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    DateTime targetTime = new DateTime(2011, 2, 25, 15, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(targetTime);
    loanTestHelper = new LoanTestHelper(selenium);
    loanProductTestHelper = new LoanProductTestHelper(selenium);
}
Also used : 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)

Example 7 with LoanProductTestHelper

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

the class LoanAccountOverdueInterestTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    propertiesHelper = new CustomPropertiesHelper(selenium);
    propertiesHelper.setOverdueInterestPaidFirst("true");
    DateTimeUpdaterRemoteTestingService dateTimeUpdaterRemoteTestingService = new DateTimeUpdaterRemoteTestingService(selenium);
    systemDateTime = new DateTime(2011, 3, 4, 12, 0, 0, 0);
    dateTimeUpdaterRemoteTestingService.setDateTime(systemDateTime);
    loanTestHelper = new LoanTestHelper(selenium);
    navigationHelper = new NavigationHelper(selenium);
    loanProductTestHelper = new LoanProductTestHelper(selenium);
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) LoanProductTestHelper(org.mifos.test.acceptance.loanproduct.LoanProductTestHelper) CustomPropertiesHelper(org.mifos.test.acceptance.framework.testhelpers.CustomPropertiesHelper) 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 LoanProductTestHelper

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

Example 9 with LoanProductTestHelper

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

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

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