Search in sources :

Example 16 with StandardTestingService

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

the class HolidayServiceIntegrationTest 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 17 with StandardTestingService

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

the class HolidayDaoHibernateIntegrationTest 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)

Example 18 with StandardTestingService

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

the class OfficeDaoHibernateIntegrationTest 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)

Example 19 with StandardTestingService

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

the class LoanProductDaoHibernateIntegrationTest 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 20 with StandardTestingService

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

the class ApplyHolidayChangesHelperIntegrationTest method initialiseHibernateUtilAndSetDefaultCurrency.

@BeforeClass
public static void initialiseHibernateUtilAndSetDefaultCurrency() {
    oldDefaultCurrency = Money.getDefaultCurrency();
    Money.setDefaultCurrency(TestUtils.RUPEE);
    new StandardTestingService().setTestMode(TestMode.INTEGRATION);
}
Also used : 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