Search in sources :

Example 6 with StandardTestingService

use of org.mifos.framework.util.StandardTestingService in project head by mifos.

the class GroupStatusChangeIntegrationTest method initialiseHibernateUtil.

@BeforeClass
public static void initialiseHibernateUtil() {
    oldDefaultCurrency = Money.getDefaultCurrency();
    Money.setDefaultCurrency(TestUtils.RUPEE);
    new StandardTestingService().setTestMode(TestMode.INTEGRATION);
}
Also used : StandardTestingService(org.mifos.framework.util.StandardTestingService) BeforeClass(org.junit.BeforeClass)

Example 7 with StandardTestingService

use of org.mifos.framework.util.StandardTestingService in project head by mifos.

the class GenerateMeetingsForCustomerAndSavingsBatchJobIntegrationTest method initialiseHibernateUtil.

@BeforeClass
public static void initialiseHibernateUtil() {
    oldDefaultCurrency = Money.getDefaultCurrency();
    Money.setDefaultCurrency(TestUtils.RUPEE);
    new StandardTestingService().setTestMode(TestMode.INTEGRATION);
}
Also used : StandardTestingService(org.mifos.framework.util.StandardTestingService) BeforeClass(org.junit.BeforeClass)

Example 8 with StandardTestingService

use of org.mifos.framework.util.StandardTestingService in project head by mifos.

the class MifosIntegrationTestCase method init.

@BeforeClass
public static void init() throws Exception {
    Log4jConfigurer.initLogging(new ConfigurationLocator().getFilePath(FilePaths.LOG_CONFIGURATION_FILE));
    verifyDatabaseState = false;
    if (!isTestingModeSet) {
        new StandardTestingService().setTestMode(TestMode.INTEGRATION);
        isTestingModeSet = true;
    }
}
Also used : StandardTestingService(org.mifos.framework.util.StandardTestingService) ConfigurationLocator(org.mifos.framework.util.ConfigurationLocator) BeforeClass(org.junit.BeforeClass)

Example 9 with StandardTestingService

use of org.mifos.framework.util.StandardTestingService in project head by mifos.

the class ApplyCustomerFeeChangesBatchJobIntegrationTest method initialiseHibernateUtil.

@BeforeClass
public static void initialiseHibernateUtil() {
    oldDefaultCurrency = Money.getDefaultCurrency();
    Money.setDefaultCurrency(TestUtils.RUPEE);
    new StandardTestingService().setTestMode(TestMode.INTEGRATION);
}
Also used : StandardTestingService(org.mifos.framework.util.StandardTestingService) BeforeClass(org.junit.BeforeClass)

Example 10 with StandardTestingService

use of org.mifos.framework.util.StandardTestingService in project head by mifos.

the class ApplicationConfigurationDaoHibernateIntegrationTest method initialiseHibernateUtil.

@BeforeClass
public static void initialiseHibernateUtil() {
    Locale locale = Localization.getInstance().getConfiguredLocale();
    AuditConfiguration.init(locale);
    oldDefaultCurrency = Money.getDefaultCurrency();
    Money.setDefaultCurrency(TestUtils.RUPEE);
    new StandardTestingService().setTestMode(TestMode.INTEGRATION);
}
Also used : Locale(java.util.Locale) StandardTestingService(org.mifos.framework.util.StandardTestingService) BeforeClass(org.junit.BeforeClass)

Aggregations

StandardTestingService (org.mifos.framework.util.StandardTestingService)26 BeforeClass (org.junit.BeforeClass)25 Locale (java.util.Locale)3 Before (org.junit.Before)1 ConfigurationLocator (org.mifos.framework.util.ConfigurationLocator)1