use of org.mifos.framework.hibernate.helper.AuditInterceptorFactory in project head by mifos.
the class MifosIntegrationTestCase method after.
@After
public void after() throws Exception {
diableCustomWorkingDays();
TestUtils.dereferenceObjects(this);
DatabaseDependentTest.after(new AuditInterceptorFactory(), sessionFactory);
dbVerificationTearDown();
}
use of org.mifos.framework.hibernate.helper.AuditInterceptorFactory in project head by mifos.
the class MifosIntegrationTestCase method before.
@Before
public void before() throws Exception {
new TestCaseInitializer().initialize(sessionFactory);
dbVerificationSetUp();
DatabaseDependentTest.before(new AuditInterceptorFactory(), sessionFactory);
Money.setDefaultCurrency(TestUtils.RUPEE);
}
use of org.mifos.framework.hibernate.helper.AuditInterceptorFactory in project head by mifos.
the class TestCaseInitializer method initializeDB.
private void initializeDB(SessionFactory sessionFactory) throws Exception {
StaticHibernateUtil.initialize(new AuditInterceptorFactory(), sessionFactory);
Money.setDefaultCurrency(AccountingRules.getMifosCurrency(new ConfigurationPersistence()));
FinancialInitializer.initialize();
ActivityMapper.getInstance().init();
HierarchyManager.getInstance().init();
AuditConfiguration.init(Localization.getInstance().getConfiguredLocale());
AccountingRules.init();
StaticHibernateUtil.commitTransaction();
}
Aggregations