List of usage examples for org.hibernate.testing.boot ServiceRegistryTestingImpl forUnitTesting
public static ServiceRegistryTestingImpl forUnitTesting()
From source file:org.infinispan.test.hibernate.cache.commons.access.PutFromLoadValidatorUnitTest.java
License:LGPL
@BeforeClassOnce public void setUp() throws Exception { TestResourceTracker.testStarted(getClass().getSimpleName()); serviceRegistry = ServiceRegistryTestingImpl.forUnitTesting(); tm = DualNodeJtaTransactionManagerImpl.getInstance("test"); cm = TestCacheManagerFactory.createCacheManager(true); cache = cm.getCache().getAdvancedCache(); }
From source file:org.infinispan.test.hibernate.cache.util.CacheTestUtil.java
License:LGPL
public static SessionFactoryOptions sfOptionsForStart() { return new SessionFactoryOptionsImpl(new SessionFactoryBuilderImpl.SessionFactoryOptionsStateStandardImpl( ServiceRegistryTestingImpl.forUnitTesting())); }