Search in sources :

Example 36 with BeforeMethod

use of org.testng.annotations.BeforeMethod 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 37 with BeforeMethod

use of org.testng.annotations.BeforeMethod 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 38 with BeforeMethod

use of org.testng.annotations.BeforeMethod 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 39 with BeforeMethod

use of org.testng.annotations.BeforeMethod in project head by mifos.

the class DefineNewLoanProductTest method setUp.

// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@BeforeMethod
@Override
public void setUp() throws Exception {
    super.setUp();
    questionGroupHelper = new QuestionGroupHelper(new NavigationHelper(selenium));
    random = new Random();
}
Also used : NavigationHelper(org.mifos.test.acceptance.framework.testhelpers.NavigationHelper) Random(java.util.Random) QuestionGroupHelper(org.mifos.test.acceptance.loan.QuestionGroupHelper) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 40 with BeforeMethod

use of org.testng.annotations.BeforeMethod in project head by mifos.

the class EditLoanProductTest method setUp.

@Override
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
// one of the dependent methods throws Exception
@BeforeMethod
public void setUp() throws Exception {
    super.setUp();
    appLauncher = new AppLauncher(selenium);
}
Also used : AppLauncher(org.mifos.test.acceptance.framework.AppLauncher) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

BeforeMethod (org.testng.annotations.BeforeMethod)1078 File (java.io.File)60 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)52 IOException (java.io.IOException)49 DateTime (org.joda.time.DateTime)46 NavigationHelper (org.mifos.test.acceptance.framework.testhelpers.NavigationHelper)42 DateTimeUpdaterRemoteTestingService (org.mifos.test.acceptance.remote.DateTimeUpdaterRemoteTestingService)41 LoanTestHelper (org.mifos.test.acceptance.framework.testhelpers.LoanTestHelper)38 Enumeration (java.util.Enumeration)37 Project (com.google.refine.model.Project)33 StringWriter (java.io.StringWriter)26 Properties (java.util.Properties)26 EntityType (org.molgenis.data.meta.model.EntityType)25 ODatabaseDocumentTx (com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx)23 ServletConfig (jakarta.servlet.ServletConfig)22 ServletContext (jakarta.servlet.ServletContext)22 HttpServletRequest (javax.servlet.http.HttpServletRequest)22 AppLauncher (org.mifos.test.acceptance.framework.AppLauncher)22 Subject (javax.security.auth.Subject)21 Attribute (org.molgenis.data.meta.model.Attribute)21